{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\vgonz\Dropbox\Pitt\OneDrive for Business\Dissertation - Vale\Paper 2 - Political-Economic Polarization\Replication\Log\1_2_Switching_Germany.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}29 Aug 2024, 15:37:11

{com}. do "C:\Users\vgonz\Dropbox\Pitt\OneDrive for Business\Dissertation - Vale\Paper 2 - Political-Economic Polarization\Replication\Do\1_2_Switching_Germany.do"
{txt}
{com}. *****************************************************************************
. *               Cleaning and Analyzing - Switching vote Germany                  *
. *                                                                                                                                           *
. * Author:                       Valentina Gonzalez-Rostani                                                      *
. * Contact:                      mag384@pitt.edu                                                                 *
. * Date:                         March 21 2022                                                                   *
. * Version:                      Stata 17                                                                        *
. *                                                                                                                                                       *
. *****************************************************************************
. /*
> This do-file:
>         * Processing of the data
>                 * Call the Data
>                 * Define variables
>                 * Save the data
>         * Load preapred data **line 869**
>         * Analysis and Descriptives: Export Tables &  Figure
> 
> Input: GSS data
>         - Data\Switching\pgen.dta
>         - Figure/US.gph // this will be used to merge with German.gph (i.e you should run first 1_1_Switching_US.do)
> 
> Final output:
>         Cleaned data: 
>                 * "Data\SOEP.dta" this data contains the relevant variables for the analysis.
>         Tables:
>                 * table A4: Switching Vote (Only left) - Germany, IV - RTI [Table\SDU.tex]
>                 * table A7: Switching Vote From Establishment Left and Right to Populist Right, IV - RTI, German [Table\SOEPlong_2.tex]
>                 * table A8: Switching Vote, IV - Routine (dummy), Germany [Table\SOEPdummy_2.tex]
>                 * table A9: Switching Vote (Only from the Right), IV - RTI [Table\CDU.tex]
>         Figure:
>             * Figure 3: The effect of exposure to automation on vote-switching. [German Part]  [Figure/Germany.gph]
>                 * Figure 3: The effect of exposure to automation on vote-switching. [Merging gph US and German part] [Figure/Graph_US_Germany.pdf]
> 
> 
> */
. ** Set directory
. cd "C:\Users\vgonz\Dropbox\Pitt\OneDrive for Business\Dissertation - Vale\Paper 2 - Political-Economic Polarization\Replication"
{res}C:\Users\vgonz\Dropbox\Pitt\OneDrive for Business\Dissertation - Vale\Paper 2 - Political-Economic Polarization\Replication
{txt}
{com}. 
. *##########################################
. * Processing of the data (alternatively skip and go to line 869)
. *##########################################
. {c -(}
. ************************************************************************
. **************** A. Calling the data  **********************************
. ************************************************************************
. {c -(}
. 
. * Calling the data
. use "Data\not_for_dataverse\pgen.dta", clear
. 
. 
. keep if syear==2014 | syear==2018 // since elections 2013 vs 2017
{txt}(236,044 observations deleted)
{com}. 
. 
. {c )-}
. 
. 
. ************************************************************************
. ********************* B. Demographic  **********************************
. ************************************************************************
. {c -(}
. * Dummy for born outside the US
. gen foreign=.
{txt}(56,109 missing values generated)
{com}. replace foreign=0 if pgnation==1
{txt}(46,212 real changes made)
{com}. replace foreign=. if pgnation<1
{txt}(0 real changes made)
{com}. replace foreign=1 if pgnation>1 & pgnation~=.
{txt}(9,897 real changes made)
{com}. 
. * Dummy for nonreligion
. gen nonrelig=1
. replace nonrelig=0 if plh0258_h>0 & plh0258_h<12
{txt}(464 real changes made)
{com}. replace nonrelig=. if plh0258_h<0
{txt}(54,439 real changes made, 54,439 to missing)
{com}. 
. gen educ=pgbilzeit
. replace educ=. if pgbilzeit<0
{txt}(4,200 real changes made, 4,200 to missing)
{com}. replace educ=. if pgbilzeit>40
{txt}(0 real changes made)
{com}. 
. * Dummy for high level of education
. gen high=(educ>13) // 13 as cut off because 13.5 is the 75% percentile
. 
. * Dummy for female
. gen female =. 
{txt}(56,109 missing values generated)
{com}. replace female = 1 if sex==2
{txt}(29,669 real changes made)
{com}. replace female = 0 if sex==1
{txt}(26,440 real changes made)
{com}. 
. * Calculating age
. destring syear gebjahr, replace
{txt}syear already numeric; no {res}replace
{txt}gebjahr already numeric; no {res}replace
{com}. gen age = . 
{txt}(56,109 missing values generated)
{com}. replace age = syear-gebjahr if gebjahr>0 & gebjahr~=. 
{txt}(56,109 real changes made)
{com}. replace age=. if syear<0 | syear==. 
{txt}(0 real changes made)
{com}. replace age=. if gebjahr<0
{txt}(0 real changes made)
{com}. 
. * Dummy for unemployed
. gen unemployed=. 
{txt}(56,109 missing values generated)
{com}. replace unemployed=1 if pglfs ==6
{txt}(3,760 real changes made)
{com}. replace unemployed=0 if pglfs ~=6 
{txt}(52,349 real changes made)
{com}. replace unemployed=. if pglfs <0
{txt}(28 real changes made, 28 to missing)
{com}. 
. gen income=. 
{txt}(56,109 missing values generated)
{com}. replace income=plb0471_h
{txt}(54,903 real changes made)
{com}. replace income=. if plb0471_h<0 | plb0471_h==. 
{txt}(27,311 real changes made, 27,311 to missing)
{com}. 
. 
. gen rincome = . 
{txt}(56,109 missing values generated)
{com}. replace rincome=1 if income<1000
{txt}(5,430 real changes made)
{com}. replace rincome=2 if income<2999 & income>999
{txt}(13,199 real changes made)
{com}. replace rincome=3 if income<3999 & income>3000
{txt}(3,493 real changes made)
{com}. replace rincome=4 if income<4999 & income>4000
{txt}(1,673 real changes made)
{com}. replace rincome=5 if income<5999 & income>5000
{txt}(870 real changes made)
{com}. replace rincome=6 if income<6999 & income>6000
{txt}(469 real changes made)
{com}. replace rincome=7 if income<7999 & income>7000
{txt}(233 real changes made)
{com}. replace rincome=8 if income<9999 & income>8000
{txt}(192 real changes made)
{com}. replace rincome=9 if income<15000 & income>10000
{txt}(105 real changes made)
{com}. replace rincome=10 if income<20000 & income>14999
{txt}(18 real changes made)
{com}. replace rincome=11 if income<25000 & income>19999
{txt}(13 real changes made)
{com}. replace rincome=12 if income>24999 & income~=.
{txt}(7 real changes made)
{com}. 
. {c )-}
. 
. 
. ************************************************************************
. ********************* C. Parties  **************************************
. ************************************************************************
. {c -(}
. * Populist [only Afd]
. gen populist=. 
{txt}(56,109 missing values generated)
{com}. replace populist = 1 if plh0012_h==27 //Alternative fur Deutschland (AfD)
{txt}(897 real changes made)
{com}. replace populist = 0 if plh0012_h==26 //Piratenpartei
{txt}(104 real changes made)
{com}. replace populist = 0 if plh0012_h==7 //NDP, Republicans, The Right
{txt}(121 real changes made)
{com}. replace populist = 0 if plh0012_h~=27 &  plh0012_h~=26 & plh0012_h~=7  
{txt}(54,987 real changes made)
{com}. replace populist = . if plh0012_h<1
{txt}(32,840 real changes made, 32,840 to missing)
{com}. 
. 
. 
. gen establishment_left2=. 
{txt}(56,109 missing values generated)
{com}. replace establishment_left2 = 1 if plh0012_h==1 //soc social democratic - spd
{txt}(6,014 real changes made)
{com}. replace establishment_left2 = 1 if plh0012_h==4 //[4] FDP       lib liberal
{txt}(804 real changes made)
{com}. replace establishment_left2 = 0 if plh0012_h~=1 & plh0012_h~=4 
{txt}(49,291 real changes made)
{com}. replace establishment_left2 = . if plh0012_h<1
{txt}(32,840 real changes made, 32,840 to missing)
{com}. 
. gen establishment_right=. 
{txt}(56,109 missing values generated)
{com}. replace establishment_right = 1 if plh0012_h==2 
{txt}(7,125 real changes made)
{com}. replace establishment_right = 1 if plh0012_h==3 
{txt}(1,361 real changes made)
{com}. replace establishment_right = 0 if plh0012_h~=2 & plh0012_h~=3  
{txt}(47,623 real changes made)
{com}. replace establishment_right = . if plh0012_h<1
{txt}(32,840 real changes made, 32,840 to missing)
{com}. 
. {c )-}
. 
. ************************************************************************
. ********************* D. Standarizing occupations **********************
. ************************************************************************
. {c -(}
. gen year=syear
. gen iscoco = pgisco88
. replace iscoco = . if pgisco88<0
{txt}(29,493 real changes made, 29,493 to missing)
{com}. replace iscoco = p_isco88 if pgisco88<0
{txt}(28,287 real changes made)
{com}. replace iscoco = . if iscoco<0
{txt}(28,287 real changes made, 28,287 to missing)
{com}. 
. foreach var of varlist iscoco  {c -(}
{txt}  2{com}. gen str_`var'=string(`var')
{txt}  3{com}. replace str_`var'="0100" if str_`var'=="100"
{txt}  4{com}. {c )-}
{txt}(91 real changes made)
{com}. sum iscoco if str_iscoco=="0100"

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}iscoco {c |}{res}         91         100           0        100        100
{com}. foreach x in iscoco {c -(}
{txt}  2{com}. gen `x'2 = substr(str_`x',1,2) if `x'<9334
{txt}  3{com}. replace `x'2 = "." if `x'2==""
{txt}  4{com}. {c )-}
{txt}(29,493 missing values generated)
(29,493 real changes made)
{com}. 
. drop str_*
. 
. destring iscoco2, replace
{txt}iscoco2: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(29493 missing values generated)
{res}{com}. 
. label var iscoco2 "ISCO88 at the 2-digit"
. 
. * Labels Iscoco
. {c -(}
. gen iscoco2n="."
. replace iscoco2n="Legislators and senior officials" if iscoco2==11
{txt}variable {bf}{res}iscoco2n{sf}{txt} was {bf}{res}str1{sf}{txt} now {bf}{res}str32{sf}
{txt}(53 real changes made)
{com}.         replace iscoco2n="Corporate managers" if iscoco2==12
{txt}(953 real changes made)
{com}.         replace iscoco2n="General managers" if iscoco2==13
{txt}(495 real changes made)
{com}.         replace iscoco2n="Physical, mathematical and engineering science professionals" if iscoco2==21
{txt}variable {bf}{res}iscoco2n{sf}{txt} was {bf}{res}str32{sf}{txt} now {bf}{res}str60{sf}
{txt}(1,553 real changes made)
{com}.         replace iscoco2n="Life science and health professionals" if iscoco2==22
{txt}(432 real changes made)
{com}.         replace iscoco2n="Teaching professionals" if iscoco2==23
{txt}(1,304 real changes made)
{com}.         replace iscoco2n="Other professionals" if iscoco2==24
{txt}(2,213 real changes made)
{com}.         replace iscoco2n="Physical and engineering science associate professionals" if iscoco2==31
{txt}(1,394 real changes made)
{com}.         replace iscoco2n="Life science and health associate professionals" if iscoco2==32
{txt}(1,055 real changes made)
{com}.         replace iscoco2n="Teaching associate professionals" if iscoco2==33
{txt}(812 real changes made)
{com}.         replace iscoco2n="Other associate professionals" if iscoco2==34
{txt}(3,295 real changes made)
{com}.         replace iscoco2n="Office clerks" if iscoco2==41
{txt}(2,175 real changes made)
{com}.         replace iscoco2n="Customer services clerks" if iscoco2==42
{txt}(413 real changes made)
{com}.         replace iscoco2n="Personal and protective services workers" if iscoco2==51
{txt}(2,258 real changes made)
{com}.         replace iscoco2n="Models, salespersons and demonstrators" if iscoco2==52
{txt}(1,041 real changes made)
{com}.         replace iscoco2n="Market-oriented skilled agricultural and fishery workers" if iscoco2==61
{txt}(316 real changes made)
{com}.         replace iscoco2n="Subsistence agricultural and fishery workers" if iscoco2==62
{txt}(0 real changes made)
{com}.         replace iscoco2n="Extraction and building trades workers" if iscoco2==71
{txt}(1,112 real changes made)
{com}.         replace iscoco2n="Metal, machinery and related trades workers" if iscoco2==72
{txt}(1,314 real changes made)
{com}.         replace iscoco2n="Precision, handicraft, printing and related trades workers" if iscoco2==73
{txt}(216 real changes made)
{com}.         replace iscoco2n="Other craft and related trades workers" if iscoco2==74
{txt}(395 real changes made)
{com}.         replace iscoco2n="Stationary-plant and related operators" if iscoco2==81
{txt}(201 real changes made)
{com}.         replace iscoco2n="Machine operators and assemblers" if iscoco2==82
{txt}(620 real changes made)
{com}.         replace iscoco2n="Drivers and mobile-plant operators" if iscoco2==83
{txt}(856 real changes made)
{com}.         replace iscoco2n="Sales and services elementary occupations" if iscoco2==91
{txt}(1,320 real changes made)
{com}.         replace iscoco2n="Agricultural, fishery and related labourers" if iscoco2==92
{txt}(69 real changes made)
{com}.         replace iscoco2n="Labourers in mining, construction, manufacturing and transport" if iscoco2==93
{txt}variable {bf}{res}iscoco2n{sf}{txt} was {bf}{res}str60{sf}{txt} now {bf}{res}str62{sf}
{txt}(660 real changes made)
{com}.         replace iscoco2n="Armed forces" if iscoco2==01
{txt}(91 real changes made)
{com}. label var iscoco2n "Names of iscoco2 coding"
. {c )-}
. ************************************************************************
. ********************* Exposure to automation ***************************
. ************************************************************************
. {c -(}
. ************************************************************************
. * 1. Goos et al.(2014)
. ************************************************************************
. {c -(}
. ** These lines include the routinisation and offshoring indices at the 2-digit level from Goos et al. (2014)
. 
. */ The idea is that for each occupation (at the 2-digit level) one risk is assigned. The weak part of this index is that it treats as the same the last 2-digit of the ISCO.
. * In other words, ISCO has 4 digit, but goos et al only consider the first 2 digit, therefore there is no differentiation among occupations that differ in the last 2 digit. 
. gen rti=.
{txt}(56,109 missing values generated)
{com}. 
. {c -(}
. replace rti=-0.75 if iscoco2==12
{txt}(953 real changes made)
{com}. replace rti=-0.82 if iscoco2==21
{txt}(1,553 real changes made)
{com}. replace rti=-1.00 if iscoco2==22
{txt}(432 real changes made)
{com}. replace rti=-0.73 if iscoco2==24
{txt}(2,213 real changes made)
{com}. replace rti=-1.52 if iscoco2==13
{txt}(495 real changes made)
{com}. replace rti=-0.40 if iscoco2==31
{txt}(1,394 real changes made)
{com}. replace rti=-0.44 if iscoco2==34
{txt}(3,295 real changes made)
{com}. replace rti=-0.33 if iscoco2==32
{txt}(1,055 real changes made)
{com}. 
. replace rti=0.32 if iscoco2==81
{txt}(201 real changes made)
{com}. replace rti=0.46 if iscoco2==72
{txt}(1,314 real changes made)
{com}. replace rti=-1.50 if iscoco2==83
{txt}(856 real changes made)
{com}. replace rti=2.24 if iscoco2==41
{txt}(2,175 real changes made)
{com}. replace rti=1.59 if iscoco2==73
{txt}(216 real changes made)
{com}. replace rti=-0.19 if iscoco2==71
{txt}(1,112 real changes made)
{com}. replace rti=1.41 if iscoco2==42
{txt}(413 real changes made)
{com}. replace rti=0.49 if iscoco2==82
{txt}(620 real changes made)
{com}. replace rti=1.24 if iscoco2==74
{txt}(395 real changes made)
{com}. 
. replace rti=0.45 if iscoco2==93
{txt}(660 real changes made)
{com}. replace rti=-0.60 if iscoco2==51
{txt}(2,258 real changes made)
{com}. replace rti=0.05 if iscoco2==52
{txt}(1,041 real changes made)
{com}. replace rti=0.03 if iscoco2==91
{txt}(1,320 real changes made)
{com}. {c )-}
. 
. label var rti "RTI index"
. 
. {c )-}
. ************************************************************************
. ***** 2. Oesch (2006) and Kitschelt and Rehm (2014) classification *****
. ************************************************************************
. {c -(}
. *Now is the same, but using Oesch (2006) and Kitschelt and Rehm (2014) classification
. 
. */  Oesch (2006) develops the bases of a new class schema that partly shifts its focus from hierarchical divisions to horizontal cleavages. The idea is  that the middle class is not conceptualized as a unitary grouping and the manual/non-manual divide is not used as a decisive class boundary. 
. */ The emphasis is put on differences in marketable skills and the work logic. 
. 
. // What is the logic? 
. */Logic of task structures: t1 organizational (taskorg), t2 technical (tasktech), and t3 interpersonal (taskinter)
. */Logic of authority: a1 professional (authprof), a2 associate professional (authassoc), a3 skilled routine (authskil) a4 unskilled routine (authunsk)
. */Leads to 3*4 groups, in regressions of K&R combined to 4 groups (skilled+unskilled routine all tasks; prof+assoc prof for 3 tasks separately)
. 
. * Code from Thewissen and Rueda  (2019)
. {c -(}
. */t1a1: Higher grade managers
. gen t1a1=1 if iscoco>=1000 & iscoco<=1251 | iscoco>=2410 & iscoco<=2419 | inlist(iscoco,2441,2470)
{txt}(54,023 missing values generated)
{com}. label var t1a1 "Higher grade managers"
. 
. */t1a2: Associate managers
. gen t1a2=1 if iscoco>=1252 & iscoco<=1319 | iscoco>=3410 & iscoco<=3449 | inlist(iscoco,3452)
{txt}(53,072 missing values generated)
{com}. label var t1a2 "Associate managers"
. 
. */t1a3: Skilled office
. gen t1a3=1 if iscoco>=4000 & iscoco<=4112 | iscoco>=4114 & iscoco<=4141 | inlist(iscoco,4143) | iscoco>=4190 & iscoco<=4210 | iscoco>=4213 & iscoco<=4221
{txt}(54,012 missing values generated)
{com}. label var t1a3 "Skilled office"
. 
. */t1a4: Routine office
. gen t1a4=1 if inlist(iscoco,4113,4142,4144) | iscoco>=4211 & iscoco<=4212 | iscoco>=4222 & iscoco<=4223
{txt}(55,618 missing values generated)
{com}. label var t1a4 "Routine office"
. 
. */t2a1: Technical experts
. gen t2a1=1 if iscoco>=2100 & iscoco<=2213
{txt}(54,510 missing values generated)
{com}. label var t2a1 "Technical experts"
. 
. */t2a2: Technicians
. gen t2a2=1 if iscoco>=3100 & iscoco<=3213 | inlist(iscoco,3471)
{txt}(54,539 missing values generated)
{com}. label var t2a2 "Technicians"
. 
. */t2a3: Skilled crafts
. gen t2a3=1 if inlist(iscoco,110,8311,8324,8333) | iscoco>=7120 & iscoco<=7142 | iscoco>=7200 & iscoco<=7233 | iscoco>=7240 & iscoco<=7423 | iscoco>=7430 & iscoco<=7520
{txt}(52,882 missing values generated)
{com}. label var t2a3 "Skilled crafts"
. 
. */t2a4: Routine operatives/agriculture
. gen t2a4=1 if inlist(iscoco,7143, 7234, 7424, 8312) | iscoco>=7100 & iscoco<=7113 | iscoco>=7129 & iscoco<=7130 | iscoco>=8000 & iscoco<=8310 | iscoco>=8334 & iscoco<=8400 | iscoco>=9160 & iscoco<=9162 | iscoco>=9300 & iscoco<=9333
{txt}(54,310 missing values generated)
{com}. replace t2a4=1 if iscoco>=6010 & iscoco<=6210 | iscoco>=8330 & iscoco<=8332 | iscoco>=9200 & iscoco<=9213
{txt}(483 real changes made)
{com}. label var t2a4 "Routine operatives/agriculture"
. 
. */t3a1: Socio-cultural professionals
. gen t3a1=1 if inlist(iscoco, 2359, 2445, 2451, 2460) | iscoco>=2220 & iscoco<=2323 | iscoco>=2350 & iscoco<=2351 |iscoco>=2420 & iscoco<=2440 | iscoco>=2442 & iscoco<=2443
{txt}(53,990 missing values generated)
{com}. label var t3a1 "Socio-cultural professionals"
. 
. */t3a2: Socio-cultural semi-professionals
. gen t3a2=1 if inlist(iscoco,2352, 2444, 3220, 3226) | iscoco>=2330 & iscoco<=2340 | iscoco>=2446 & iscoco<=2450 | iscoco>=2452 & iscoco<=2455 | iscoco>=3222 & iscoco<=3224 | iscoco>=3229 & iscoco<=3232 | iscoco>=3240 & iscoco<=3400 | iscoco>=3450 & iscoco<=3451 | iscoco>=3460 & iscoco<=3470 | iscoco>=3472 & iscoco<=3480
{txt}(53,068 missing values generated)
{com}. label var t3a2 "Socio-cultural semi-professionals"
. 
. */t3a3: Skilled service
. gen t3a3=1 if inlist(iscoco, 3221, 3225, 5122, 5141, 5143, 8323) | iscoco>=3227 & iscoco<=3228 | iscoco>=5110 & iscoco<=5113 | iscoco>=5150 & iscoco<=5163 | iscoco>=5200 & iscoco<=5210
{txt}(55,202 missing values generated)
{com}. label var t3a3 "Skilled service"
. 
. */t3a4: Routine service
. gen t3a4=1 if inlist(iscoco,5142, 5149, 5169) | iscoco>=5120 & iscoco<=5121 | iscoco>=5123 & iscoco<=5130 | iscoco>=5131 & iscoco<=5140 | iscoco>=5220 & iscoco<=5230 | iscoco>=8320 & iscoco<=8322 | iscoco>=9100 & iscoco<=9153
{txt}(52,023 missing values generated)
{com}. label var t3a4 "Routine service"
. 
. 
. forvalues i=1(1)3 {c -(}
{txt}  2{com}.         gen t`i'=1 if t`i'a1==1 | t`i'a2==1  | t`i'a3==1 | t`i'a4==1
{txt}  3{com}.         {c )-}
{txt}(48,398 missing values generated)
(47,472 missing values generated)
(45,956 missing values generated)
{com}. list t1-t3 if t1==t2 & t2==t3 & t1==t3 & t1~=.
. replace t1=0 if t2==1 | t3==1
{txt}(18,790 real changes made)
{com}. replace t2=0 if t1==1 | t3==1
{txt}(17,864 real changes made)
{com}. replace t3=0 if t1==1 | t2==1
{txt}(16,348 real changes made)
{com}. 
. label var t1 "Organisational task structure (t1a1, 2, 3, or 4==1)"
. label var t2 "Technical task structure (t2a1, 2, 3, or 4==1)"
. label var t3 "Interpersonal task structure (t3a1, 2, 3, or 4==1)"
. 
. forvalues i=1(1)4 {c -(}
{txt}  2{com}.         gen a`i'=1 if t1a`i'==1 | t2a`i'==1  | t3a`i'==1
{txt}  3{com}.         {c )-}
{txt}(50,305 missing values generated)
(48,461 missing values generated)
(49,878 missing values generated)
(49,250 missing values generated)
{com}. replace a1=0 if a2==1 | a3==1 | a4==1
{txt}(20,697 real changes made)
{com}. replace a2=0 if a1==1 | a3==1 | a4==1
{txt}(18,853 real changes made)
{com}. replace a3=0 if a1==1 | a2==1 | a4==1
{txt}(20,311 real changes made)
{com}. replace a4=0 if a1==1 | a2==1 | a3==1
{txt}(19,642 real changes made)
{com}. 
. label var a1 "Professional authority (t1a1, t2a1, or t3a1==1)"
. label var a2 "Assoc prof authority (t1a2, t2a2, or t3a2==1)"
. label var a3 "Skilled routine authority (t1a3, t2a3, or t3a3==1)"
. label var a4 "Unskilled routine authority (t1a4, t2a4, or t3a4==1)"
. 
. gen check = a1+a2+a3+a4
{txt}(29,608 missing values generated)
{com}. sum check

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}check {c |}{res}     26,501           1           0          1          1
{com}. drop check
. 
. gen c1=1 if t1a1==1 | t1a2==1
{txt}(50,986 missing values generated)
{com}. gen c2=1 if t2a1==1 | t2a2==1
{txt}(52,940 missing values generated)
{com}. gen c3=1 if t3a1==1 | t3a2==1
{txt}(50,949 missing values generated)
{com}. gen c4=1 if t1a3==1 | t1a4==1 | t2a3==1 | t2a4==1 | t3a3==1 | t3a4==1
{txt}(43,060 missing values generated)
{com}. 
. replace c1=0 if c2==1 | c3==1 | c4==1
{txt}(21,378 real changes made)
{com}. replace c2=0 if c1==1 | c3==1 | c4==1
{txt}(23,332 real changes made)
{com}. replace c3=0 if c1==1 | c2==1 | c4==1
{txt}(21,341 real changes made)
{com}. replace c4=0 if c1==1 | c2==1 | c3==1
{txt}(13,452 real changes made)
{com}. 
. label var c1 "Skilled organisational (t1a1 or t1a2==1)"
. label var c2 "Skilled technical (t2a1 or t2a2==1)"
. label var c3 "Skilled interpersonal (t3a1 or t3a2==1)"
. label var c4 "Unskilled routine (t1a3, t1a4, t2a3, t2a4, t3a3, or t3a4==1)"
. 
. gen check = c1+c2+c3+c4
{txt}(29,608 missing values generated)
{com}. sum check

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}check {c |}{res}     26,501           1           0          1          1
{com}. drop check
. {c )-}
. {c )-}
. *********************************************************************
. ***** 3. Offshoring index from Walter (2017), based on Blinder*******
. *********************************************************************
. {c -(}
. */ Stefanie Walter (2017) provides the code for offshorability based on Blinder. It uses ISCO with 4 digits. 
. 
. gen offshwalt=.
{txt}(56,109 missing values generated)
{com}. label var offshwalt "Offshoring Potential (Blinder) from Walter"
. 
. 
. *4-digit ISCO-code
.  * Coding is based on the classification developed in Blinder, Alan. 2007. "How Many U.S. Jobs Might Be Offshorable." CEPS Working Paper No. 142.
. * NOTE: all professions not listed by Blinder are coded as not offshorable (value 0)
. * Unlike Goos et al, Walter considers the 4 digits. 
. {c -(}
. replace offshwalt=0 if iscoco<.
{txt}(26,616 real changes made)
{com}. replace offshwalt=49 if iscoco==1142
{txt}(24 real changes made)
{com}. replace offshwalt=55 if iscoco==1222
{txt}(98 real changes made)
{com}. replace offshwalt=28 if iscoco==1226
{txt}(5 real changes made)
{com}. replace offshwalt=55 if iscoco==1228
{txt}(0 real changes made)
{com}. replace offshwalt=83 if iscoco==1231
{txt}(44 real changes made)
{com}. replace offshwalt=49 if iscoco==1232
{txt}(50 real changes made)
{com}. replace offshwalt=40 if iscoco==1233
{txt}(194 real changes made)
{com}. replace offshwalt=53 if iscoco==1234
{txt}(9 real changes made)
{com}. replace offshwalt=49 if iscoco==1235
{txt}(15 real changes made)
{com}. replace offshwalt=55 if iscoco==1236
{txt}(58 real changes made)
{com}. replace offshwalt=55 if iscoco==1237
{txt}(0 real changes made)
{com}. replace offshwalt=55 if iscoco==1311
{txt}(6 real changes made)
{com}. replace offshwalt=55 if iscoco==1312
{txt}(2 real changes made)
{com}. replace offshwalt=55 if iscoco==1313
{txt}(16 real changes made)
{com}. replace offshwalt=55 if iscoco==1314
{txt}(199 real changes made)
{com}. replace offshwalt=55 if iscoco==1315
{txt}(107 real changes made)
{com}. replace offshwalt=48 if iscoco==1316
{txt}(13 real changes made)
{com}. replace offshwalt=52 if iscoco==1317
{txt}(9 real changes made)
{com}. replace offshwalt=55 if iscoco==1318
{txt}(0 real changes made)
{com}. replace offshwalt=55 if iscoco==1319
{txt}(23 real changes made)
{com}. replace offshwalt=66 if iscoco==2111
{txt}(12 real changes made)
{com}. replace offshwalt=74 if iscoco==2112
{txt}(1 real change made)
{com}. replace offshwalt=66 if iscoco==2113
{txt}(25 real changes made)
{com}. replace offshwalt=66 if iscoco==2114
{txt}(6 real changes made)
{com}. replace offshwalt=89 if iscoco==2121
{txt}(5 real changes made)
{com}. replace offshwalt=96 if iscoco==2122
{txt}(4 real changes made)
{com}. replace offshwalt=83 if iscoco==2131
{txt}(183 real changes made)
{com}. replace offshwalt=90 if iscoco==2139
{txt}(225 real changes made)
{com}. replace offshwalt=25 if iscoco==2141
{txt}(120 real changes made)
{com}. replace offshwalt=64 if iscoco==2143
{txt}(119 real changes made)
{com}. replace offshwalt=74 if iscoco==2144
{txt}(90 real changes made)
{com}. replace offshwalt=72 if iscoco==2146
{txt}(49 real changes made)
{com}. replace offshwalt=69 if iscoco==2147
{txt}(7 real changes made)
{com}. replace offshwalt=86 if iscoco==2148
{txt}(9 real changes made)
{com}. replace offshwalt=71 if iscoco==2149
{txt}(257 real changes made)
{com}. replace offshwalt=81 if iscoco==2211
{txt}(18 real changes made)
{com}. replace offshwalt=83 if iscoco==2212
{txt}(2 real changes made)
{com}. replace offshwalt=72 if iscoco==2411
{txt}(86 real changes made)
{com}. replace offshwalt=50 if iscoco==2419
{txt}(442 real changes made)
{com}. replace offshwalt=74 if iscoco==2421
{txt}(149 real changes made)
{com}. replace offshwalt=67 if iscoco==2444
{txt}(32 real changes made)
{com}. replace offshwalt=90 if iscoco==2451
{txt}(152 real changes made)
{com}. replace offshwalt=78 if iscoco==2452
{txt}(24 real changes made)
{com}. replace offshwalt=25 if iscoco==2453
{txt}(48 real changes made)
{com}. replace offshwalt=48 if iscoco==2455
{txt}(16 real changes made)
{com}. replace offshwalt=47 if iscoco==3111
{txt}(106 real changes made)
{com}. replace offshwalt=47 if iscoco==3113
{txt}(83 real changes made)
{com}. replace offshwalt=47 if iscoco==3114
{txt}(53 real changes made)
{com}. replace offshwalt=72 if iscoco==3115
{txt}(136 real changes made)
{com}. replace offshwalt=47 if iscoco==3116
{txt}(0 real changes made)
{com}. replace offshwalt=94 if iscoco==3118
{txt}(69 real changes made)
{com}. replace offshwalt=54 if iscoco==3119
{txt}(238 real changes made)
{com}. replace offshwalt=75 if iscoco==3121
{txt}(245 real changes made)
{com}. replace offshwalt=84 if iscoco==3122
{txt}(12 real changes made)
{com}. replace offshwalt=68 if iscoco==3123
{txt}(0 real changes made)
{com}. replace offshwalt=36 if iscoco==3131
{txt}(77 real changes made)
{com}. replace offshwalt=36 if iscoco==3132
{txt}(1 real change made)
{com}. replace offshwalt=46 if iscoco==3133
{txt}(22 real changes made)
{com}. replace offshwalt=34 if iscoco==3139
{txt}(7 real changes made)
{com}. replace offshwalt=52 if iscoco==3141
{txt}(0 real changes made)
{com}. replace offshwalt=60 if iscoco==3152
{txt}(144 real changes made)
{com}. replace offshwalt=55 if iscoco==3211
{txt}(72 real changes made)
{com}. replace offshwalt=55 if iscoco==3212
{txt}(8 real changes made)
{com}. replace offshwalt=44 if iscoco==3213
{txt}(5 real changes made)
{com}. replace offshwalt=32 if iscoco==3228
{txt}(83 real changes made)
{com}. replace offshwalt=51 if iscoco==3411
{txt}(9 real changes made)
{com}. replace offshwalt=85 if iscoco==3412
{txt}(59 real changes made)
{com}. replace offshwalt=50 if iscoco==3414
{txt}(3 real changes made)
{com}. replace offshwalt=55 if iscoco==3416
{txt}(68 real changes made)
{com}. replace offshwalt=59 if iscoco==3419
{txt}(616 real changes made)
{com}. replace offshwalt=51 if iscoco==3421
{txt}(6 real changes made)
{com}. replace offshwalt=48 if iscoco==3422
{txt}(0 real changes made)
{com}. replace offshwalt=38 if iscoco==3431
{txt}(428 real changes made)
{com}. replace offshwalt=51 if iscoco==3432
{txt}(291 real changes made)
{com}. replace offshwalt=84 if iscoco==3433
{txt}(303 real changes made)
{com}. replace offshwalt=84 if iscoco==3434
{txt}(0 real changes made)
{com}. replace offshwalt=54 if iscoco==3439
{txt}(0 real changes made)
{com}. replace offshwalt=100 if iscoco==3442
{txt}(59 real changes made)
{com}. replace offshwalt=85 if iscoco==3471
{txt}(91 real changes made)
{com}. replace offshwalt=30 if iscoco==3472
{txt}(1 real change made)
{com}. replace offshwalt=95 if iscoco==4111
{txt}(15 real changes made)
{com}. replace offshwalt=94 if iscoco==4112
{txt}(0 real changes made)
{com}. replace offshwalt=100 if iscoco==4113
{txt}(12 real changes made)
{com}. replace offshwalt=71 if iscoco==4114
{txt}(0 real changes made)
{com}. replace offshwalt=38 if iscoco==4115
{txt}(174 real changes made)
{com}. replace offshwalt=84 if iscoco==4121
{txt}(194 real changes made)
{com}. replace offshwalt=54 if iscoco==4122
{txt}(331 real changes made)
{com}. replace offshwalt=31 if iscoco==4131
{txt}(247 real changes made)
{com}. replace offshwalt=67 if iscoco==4132
{txt}(131 real changes made)
{com}. replace offshwalt=67 if iscoco==4133
{txt}(125 real changes made)
{com}. replace offshwalt=46 if iscoco==4141
{txt}(55 real changes made)
{com}. replace offshwalt=26 if iscoco==4142
{txt}(124 real changes made)
{com}. replace offshwalt=95 if iscoco==4143
{txt}(1 real change made)
{com}. replace offshwalt=54 if iscoco==4144
{txt}(0 real changes made)
{com}. replace offshwalt=54 if iscoco==4190
{txt}(766 real changes made)
{com}. replace offshwalt=94 if iscoco==4211
{txt}(128 real changes made)
{com}. replace offshwalt=54 if iscoco==4214
{txt}(0 real changes made)
{com}. replace offshwalt=65 if iscoco==4215
{txt}(5 real changes made)
{com}. replace offshwalt=72 if iscoco==4221
{txt}(48 real changes made)
{com}. replace offshwalt=54 if iscoco==4222
{txt}(84 real changes made)
{com}. replace offshwalt=50 if iscoco==4223
{txt}(94 real changes made)
{com}. replace offshwalt=86 if iscoco==5113
{txt}(10 real changes made)
{com}. replace offshwalt=59 if iscoco==6142
{txt}(0 real changes made)
{com}. replace offshwalt=36 if iscoco==7111
{txt}(1 real change made)
{com}. replace offshwalt=35 if iscoco==7112
{txt}(0 real changes made)
{com}. replace offshwalt=36 if iscoco==7113
{txt}(14 real changes made)
{com}. replace offshwalt=65 if iscoco==7211
{txt}(2 real changes made)
{com}. replace offshwalt=69 if iscoco==7212
{txt}(67 real changes made)
{com}. replace offshwalt=70 if iscoco==7213
{txt}(41 real changes made)
{com}. replace offshwalt=70 if iscoco==7222
{txt}(54 real changes made)
{com}. replace offshwalt=68 if iscoco==7223
{txt}(157 real changes made)
{com}. replace offshwalt=68 if iscoco==7224
{txt}(1 real change made)
{com}. replace offshwalt=26 if iscoco==7311
{txt}(87 real changes made)
{com}. replace offshwalt=64 if iscoco==7313
{txt}(6 real changes made)
{com}. replace offshwalt=69 if iscoco==7321
{txt}(7 real changes made)
{com}. replace offshwalt=69 if iscoco==7322
{txt}(8 real changes made)
{com}. replace offshwalt=68 if iscoco==7323
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==7324
{txt}(1 real change made)
{com}. replace offshwalt=60 if iscoco==7331
{txt}(4 real changes made)
{com}. replace offshwalt=75 if iscoco==7332
{txt}(1 real change made)
{com}. replace offshwalt=59 if iscoco==7341
{txt}(70 real changes made)
{com}. replace offshwalt=59 if iscoco==7342
{txt}(0 real changes made)
{com}. replace offshwalt=59 if iscoco==7343
{txt}(1 real change made)
{com}. replace offshwalt=34 if iscoco==7344
{txt}(2 real changes made)
{com}. replace offshwalt=59 if iscoco==7345
{txt}(11 real changes made)
{com}. replace offshwalt=75 if iscoco==7346
{txt}(6 real changes made)
{com}. replace offshwalt=68 if iscoco==7413
{txt}(6 real changes made)
{com}. replace offshwalt=27 if iscoco==7414
{txt}(0 real changes made)
{com}. replace offshwalt=55 if iscoco==7415
{txt}(0 real changes made)
{com}. replace offshwalt=43 if iscoco==7421
{txt}(0 real changes made)
{com}. replace offshwalt=57 if iscoco==7422
{txt}(125 real changes made)
{com}. replace offshwalt=57 if iscoco==7423
{txt}(37 real changes made)
{com}. replace offshwalt=66 if iscoco==7424
{txt}(3 real changes made)
{com}. replace offshwalt=75 if iscoco==7431
{txt}(0 real changes made)
{com}. replace offshwalt=75 if iscoco==7432
{txt}(6 real changes made)
{com}. replace offshwalt=75 if iscoco==7433
{txt}(23 real changes made)
{com}. replace offshwalt=73 if iscoco==7434
{txt}(0 real changes made)
{com}. replace offshwalt=75 if iscoco==7435
{txt}(0 real changes made)
{com}. replace offshwalt=75 if iscoco==7436
{txt}(24 real changes made)
{com}. replace offshwalt=57 if iscoco==7437
{txt}(21 real changes made)
{com}. replace offshwalt=75 if iscoco==7441
{txt}(0 real changes made)
{com}. replace offshwalt=72 if iscoco==7442
{txt}(20 real changes made)
{com}. replace offshwalt=36 if iscoco==8111
{txt}(0 real changes made)
{com}. replace offshwalt=36 if iscoco==8112
{txt}(2 real changes made)
{com}. replace offshwalt=36 if iscoco==8113
{txt}(0 real changes made)
{com}. replace offshwalt=59 if iscoco==8121
{txt}(11 real changes made)
{com}. replace offshwalt=68 if iscoco==8122
{txt}(26 real changes made)
{com}. replace offshwalt=70 if iscoco==8123
{txt}(1 real change made)
{com}. replace offshwalt=68 if iscoco==8124
{txt}(3 real changes made)
{com}. replace offshwalt=69 if iscoco==8131
{txt}(1 real change made)
{com}. replace offshwalt=68 if iscoco==8139
{txt}(0 real changes made)
{com}. replace offshwalt=57 if iscoco==8141
{txt}(8 real changes made)
{com}. replace offshwalt=68 if iscoco==8142
{txt}(2 real changes made)
{com}. replace offshwalt=68 if iscoco==8143
{txt}(11 real changes made)
{com}. replace offshwalt=68 if iscoco==8151
{txt}(1 real change made)
{com}. replace offshwalt=70 if iscoco==8152
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8153
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8154
{txt}(0 real changes made)
{com}. replace offshwalt=29 if iscoco==8155
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8159
{txt}(95 real changes made)
{com}. replace offshwalt=42 if iscoco==8161
{txt}(13 real changes made)
{com}. replace offshwalt=55 if iscoco==8162
{txt}(0 real changes made)
{com}. replace offshwalt=29 if iscoco==8163
{txt}(27 real changes made)
{com}. replace offshwalt=64 if iscoco==8171
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8172
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8211
{txt}(128 real changes made)
{com}. replace offshwalt=68 if iscoco==8212
{txt}(5 real changes made)
{com}. replace offshwalt=68 if iscoco==8221
{txt}(6 real changes made)
{com}. replace offshwalt=35 if iscoco==8222
{txt}(1 real change made)
{com}. replace offshwalt=68 if iscoco==8223
{txt}(19 real changes made)
{com}. replace offshwalt=41 if iscoco==8224
{txt}(0 real changes made)
{com}. replace offshwalt=29 if iscoco==8229
{txt}(2 real changes made)
{com}. replace offshwalt=69 if iscoco==8231
{txt}(11 real changes made)
{com}. replace offshwalt=68 if iscoco==8232
{txt}(86 real changes made)
{com}. replace offshwalt=57 if iscoco==8240
{txt}(3 real changes made)
{com}. replace offshwalt=58 if iscoco==8251
{txt}(0 real changes made)
{com}. replace offshwalt=59 if iscoco==8252
{txt}(3 real changes made)
{com}. replace offshwalt=68 if iscoco==8253
{txt}(14 real changes made)
{com}. replace offshwalt=75 if iscoco==8261
{txt}(9 real changes made)
{com}. replace offshwalt=75 if iscoco==8262
{txt}(0 real changes made)
{com}. replace offshwalt=75 if iscoco==8263
{txt}(0 real changes made)
{com}. replace offshwalt=75 if iscoco==8264
{txt}(64 real changes made)
{com}. replace offshwalt=75 if iscoco==8265
{txt}(0 real changes made)
{com}. replace offshwalt=75 if iscoco==8266
{txt}(2 real changes made)
{com}. replace offshwalt=75 if iscoco==8269
{txt}(0 real changes made)
{com}. replace offshwalt=27 if iscoco==8271
{txt}(16 real changes made)
{com}. replace offshwalt=68 if iscoco==8272
{txt}(7 real changes made)
{com}. replace offshwalt=68 if iscoco==8273
{txt}(0 real changes made)
{com}. replace offshwalt=30 if iscoco==8274
{txt}(11 real changes made)
{com}. replace offshwalt=31 if iscoco==8275
{txt}(68 real changes made)
{com}. replace offshwalt=68 if iscoco==8276
{txt}(3 real changes made)
{com}. replace offshwalt=27 if iscoco==8277
{txt}(3 real changes made)
{com}. replace offshwalt=68 if iscoco==8278
{txt}(16 real changes made)
{com}. replace offshwalt=66 if iscoco==8281
{txt}(2 real changes made)
{com}. replace offshwalt=66 if iscoco==8282
{txt}(7 real changes made)
{com}. replace offshwalt=66 if iscoco==8283
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8284
{txt}(11 real changes made)
{com}. replace offshwalt=57 if iscoco==8285
{txt}(0 real changes made)
{com}. replace offshwalt=64 if iscoco==8286
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8290
{txt}(123 real changes made)
{com}. replace offshwalt=34 if iscoco==8340
{txt}(9 real changes made)
{com}. replace offshwalt=95 if iscoco==9113
{txt}(0 real changes made)
{com}. replace offshwalt=64 if iscoco==9321
{txt}(0 real changes made)
{com}. replace offshwalt=29 if iscoco==9333
{txt}(0 real changes made)
{com}. replace offshwalt=55 if iscoco==1227
{txt}(61 real changes made)
{com}. replace offshwalt=89 if iscoco==2121
{txt}(0 real changes made)
{com}. replace offshwalt=100 if iscoco==2132
{txt}(0 real changes made)
{com}. replace offshwalt=70 if iscoco==2145
{txt}(274 real changes made)
{com}. replace offshwalt=71 if iscoco==2149
{txt}(0 real changes made)
{com}. replace offshwalt=81 if iscoco==2211
{txt}(0 real changes made)
{com}. replace offshwalt=46 if iscoco==2412
{txt}(45 real changes made)
{com}. replace offshwalt=50 if iscoco==2419
{txt}(0 real changes made)
{com}. replace offshwalt=33 if iscoco==2432
{txt}(20 real changes made)
{com}. replace offshwalt=89 if iscoco==2441
{txt}(39 real changes made)
{com}. replace offshwalt=48 if iscoco==2455
{txt}(0 real changes made)
{com}. replace offshwalt=72 if iscoco==3115
{txt}(0 real changes made)
{com}. replace offshwalt=54 if iscoco==3119
{txt}(0 real changes made)
{com}. replace offshwalt=46 if iscoco==3133
{txt}(0 real changes made)
{com}. replace offshwalt=34 if iscoco==3139
{txt}(0 real changes made)
{com}. replace offshwalt=34 if iscoco==3224
{txt}(35 real changes made)
{com}. replace offshwalt=51 if iscoco==3411
{txt}(0 real changes made)
{com}. replace offshwalt=25 if iscoco==3415
{txt}(138 real changes made)
{com}. replace offshwalt=50 if iscoco==3417
{txt}(5 real changes made)
{com}. replace offshwalt=59 if iscoco==3419
{txt}(0 real changes made)
{com}. replace offshwalt=51 if iscoco==3432
{txt}(0 real changes made)
{com}. replace offshwalt=54 if iscoco==3439
{txt}(0 real changes made)
{com}. replace offshwalt=90 if iscoco==3460
{txt}(450 real changes made)
{com}. replace offshwalt=54 if iscoco==4122
{txt}(0 real changes made)
{com}. replace offshwalt=31 if iscoco==4131
{txt}(0 real changes made)
{com}. replace offshwalt=67 if iscoco==4132
{txt}(0 real changes made)
{com}. replace offshwalt=46 if iscoco==4141
{txt}(0 real changes made)
{com}. replace offshwalt=26 if iscoco==4142
{txt}(0 real changes made)
{com}. replace offshwalt=54 if iscoco==4222
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==7141
{txt}(131 real changes made)
{com}. replace offshwalt=68 if iscoco==7224
{txt}(0 real changes made)
{com}. replace offshwalt=65 if iscoco==7241
{txt}(297 real changes made)
{com}. replace offshwalt=34 if iscoco==7344
{txt}(0 real changes made)
{com}. replace offshwalt=72 if iscoco==7442
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8122
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8139
{txt}(0 real changes made)
{com}. replace offshwalt=42 if iscoco==8161
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8211
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8223
{txt}(0 real changes made)
{com}. replace offshwalt=41 if iscoco==8224
{txt}(0 real changes made)
{com}. replace offshwalt=57 if iscoco==8240
{txt}(0 real changes made)
{com}. replace offshwalt=58 if iscoco==8251
{txt}(0 real changes made)
{com}. replace offshwalt=75 if iscoco==8269
{txt}(0 real changes made)
{com}. replace offshwalt=66 if iscoco==8281
{txt}(0 real changes made)
{com}. replace offshwalt=66 if iscoco==8283
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8284
{txt}(0 real changes made)
{com}. replace offshwalt=68 if iscoco==8290
{txt}(0 real changes made)
{com}. replace offshwalt=70 if iscoco==9322
{txt}(0 real changes made)
{com}. {c )-}
. 
. * Create Ordinal Offshwalt Variable
. {c -(}
. gen offshwalt4=.
{txt}(56,109 missing values generated)
{com}. replace offshwalt4=4 if offshwalt<.
{txt}(26,616 real changes made)
{com}. replace offshwalt4=3 if offshwalt<75
{txt}(24,128 real changes made)
{com}. replace offshwalt4=2 if offshwalt<50
{txt}(17,138 real changes made)
{com}. replace offshwalt4=1 if offshwalt<25
{txt}(14,693 real changes made)
{com}. label var offshwalt4 "offshwalt ordinal (4 categories)"
. {c )-}
. 
. * Binary Offshwalt Variable
. gen offshwalt2=offshwalt4>1
. replace offshwalt2=. if offshwalt==.
{txt}(29,493 real changes made, 29,493 to missing)
{com}. label var offshwalt2 "offshwalt binary: =1 if offshwalt>=25 if offshwalt"
. {c )-}
. *******************************************************************************
. *****4. Skill specificity provided Iversen, Cusack and Rehm (2011) ************
. *******************************************************************************
. {c -(}
. {c -(}
. */ This code is provided by Torben Iversen; Thomas Cusack; Philipp Rehm, 2011: Risks at Work The Demand and Supply Sides of Government Redistribution
. */ See: Raw data\Occupations\Measuring_skill-specificity Iversen, Cusack and Rehm (2011).xlsx column J Relative skill specificity  
. {c -(}
. gen relskillspec=.      
{txt}(56,109 missing values generated)
{com}.         replace relskillspec=6.168528055        if iscoco2==11
{txt}(53 real changes made)
{com}.         replace relskillspec=2.840445869        if iscoco2==12
{txt}(953 real changes made)
{com}.         replace relskillspec=1.612754672        if iscoco2==13
{txt}(495 real changes made)
{com}.         replace relskillspec=3.94911483         if iscoco2==21
{txt}(1,553 real changes made)
{com}.         replace relskillspec=2.875304662        if iscoco2==22
{txt}(432 real changes made)
{com}.         replace relskillspec=1.298205499        if iscoco2==23
{txt}(1,304 real changes made)
{com}.         replace relskillspec=3.38271403         if iscoco2==24
{txt}(2,213 real changes made)
{com}.         replace relskillspec=5.999693379        if iscoco2==31
{txt}(1,394 real changes made)
{com}.         replace relskillspec=5.599717306        if iscoco2==32
{txt}(1,055 real changes made)
{com}.         replace relskillspec=2.435374975        if iscoco2==33
{txt}(812 real changes made)
{com}.         replace relskillspec=3.582262408        if iscoco2==34
{txt}(3,295 real changes made)
{com}.         replace relskillspec=1.803739154        if iscoco2==41
{txt}(2,175 real changes made)
{com}.         replace relskillspec=3.899735492        if iscoco2==42
{txt}(413 real changes made)
{com}.         replace relskillspec=3.020082744        if iscoco2==51
{txt}(2,258 real changes made)
{com}.         replace relskillspec=0.787535801        if iscoco2==52
{txt}(1,041 real changes made)
{com}.         replace relskillspec=4.674256488        if iscoco2==61
{txt}(316 real changes made)
{com}.         replace relskillspec=3.91546829         if iscoco2==71
{txt}(1,112 real changes made)
{com}.         replace relskillspec=3.842807254        if iscoco2==72
{txt}(1,314 real changes made)
{com}.         replace relskillspec=20.41910075        if iscoco2==73
{txt}(216 real changes made)
{com}.         replace relskillspec=9.446026838        if iscoco2==74
{txt}(395 real changes made)
{com}.         replace relskillspec=25.06473567        if iscoco2==81
{txt}(201 real changes made)
{com}.         replace relskillspec=12.27676336        if iscoco2==82
{txt}(620 real changes made)
{com}.         replace relskillspec=3.672294237        if iscoco2==83
{txt}(856 real changes made)
{com}.         replace relskillspec=7.39344664         if iscoco2==91
{txt}(1,320 real changes made)
{com}.         replace relskillspec=7.384150506        if iscoco2==92
{txt}(69 real changes made)
{com}.         replace relskillspec=6.460338111        if iscoco2==93
{txt}(660 real changes made)
{com}.         label var relskillspec "Relative skill specificity , Iversen"
. {c )-}
.         
. {c )-}
. 
. {c )-}
. 
. *******************************************************************************
. * 5 task categories Kurer (2020)
. *******************************************************************************
. {c -(}
. rename iscoco iscoco_withoutchange
{res}{com}. gen iscoco=iscoco_withoutchange
{txt}(29,493 missing values generated)
{com}.     
. {c -(}
. *generating 3 task categories
. gen task = .
{txt}(56,109 missing values generated)
{com}. gen isco=iscoco
{txt}(29,493 missing values generated)
{com}. replace task = 1 if inlist(isco, 2411, 2431, 2441, 3411, 3471)
{txt}(242 real changes made)
{com}. replace task = 1 if inrange(isco, 2100, 2213)
{txt}(1,599 real changes made)
{com}. replace task = 1 if inrange(isco, 2443, 2444)
{txt}(50 real changes made)
{com}. replace task = 1 if inrange(isco, 2446, 2452)
{txt}(581 real changes made)
{com}. replace task = 1 if inrange(isco, 3100, 3212)
{txt}(1,474 real changes made)
{com}. replace task = 1 if inrange(isco, 3433, 3440)
{txt}(303 real changes made)
{com}. replace task = 1 if inrange(isco, 3442, 3444)
{txt}(226 real changes made)
{com}. 
. replace task = 2 if inlist(isco, 2442, 2445, 3226, 3432, 3441)
{txt}(519 real changes made)
{com}. replace task = 2 if inrange(isco, 1000, 1319)
{txt}(1,501 real changes made)
{com}. replace task = 2 if inrange(isco, 2220, 2410)
{txt}(1,714 real changes made)
{com}. replace task = 2 if inrange(isco, 2412, 2430)
{txt}(723 real changes made)
{com}. replace task = 2 if inrange(isco, 2432, 2440)
{txt}(20 real changes made)
{com}. replace task = 2 if inrange(isco, 2453, 2470)
{txt}(582 real changes made)
{com}. replace task = 2 if inrange(isco, 3213, 3220)
{txt}(5 real changes made)
{com}. replace task = 2 if inrange(isco, 3222, 3224)
{txt}(52 real changes made)
{com}. replace task = 2 if inrange(isco, 3229, 3410)
{txt}(1,510 real changes made)
{com}. replace task = 2 if inrange(isco, 3412, 3429)
{txt}(1,116 real changes made)
{com}. replace task = 2 if inrange(isco, 3449, 3470)
{txt}(762 real changes made)
{com}. replace task = 2 if inrange(isco, 3472, 3480)
{txt}(69 real changes made)
{com}. 
. replace task = 3 if isco==4223
{txt}(94 real changes made)
{com}. replace task = 3 if inrange(isco, 3430, 3431)
{txt}(428 real changes made)
{com}. replace task = 3 if inrange(isco, 4000, 4195)
{txt}(2,175 real changes made)
{com}. replace task = 3 if inrange(isco, 4210, 4215)
{txt}(187 real changes made)
{com}. 
. replace task = 4 if inlist(isco, 7124, 8340, 9120, 9133)
{txt}(76 real changes made)
{com}. replace task = 4 if inrange(isco, 1, 110) /* departing from oesch, including 110 (armed forces). this is the actual intention of 1-100 */
{txt}(91 real changes made)
{com}. replace task = 4 if inrange(isco, 6100, 7113)
{txt}(331 real changes made)
{com}. replace task = 4 if inrange(isco, 7210, 8290)
{txt}(2,746 real changes made)
{com}. replace task = 4 if inrange(isco, 9000, 9001)
{txt}(0 real changes made)
{com}. replace task = 4 if inrange(isco, 9150, 9151)
{txt}(77 real changes made)
{com}. replace task = 4 if inrange(isco, 9153, 9161)
{txt}(13 real changes made)
{com}. replace task = 4 if inrange(isco, 9200, 9311)
{txt}(70 real changes made)
{com}. 
. replace task = 5 if inlist(isco, 5122, 5143, 9002, 9162)
{txt}(400 real changes made)
{com}. replace task = 5 if inrange(isco, 7120, 7123)
{txt}(130 real changes made)
{com}. replace task = 5 if inrange(isco, 7129, 7143)
{txt}(900 real changes made)
{com}. replace task = 5 if inrange(isco, 8300, 8334)
{txt}(847 real changes made)
{com}. replace task = 5 if inrange(isco, 9130, 9132)
{txt}(881 real changes made)
{com}. replace task = 5 if inrange(isco, 9140, 9142)
{txt}(295 real changes made)
{com}. replace task = 5 if inrange(isco, 9312, 9313)
{txt}(58 real changes made)
{com}. 
. replace task = 6 if inlist(isco, 3221, 3225, 4200, 9152)
{txt}(51 real changes made)
{com}. replace task = 6 if inrange(isco, 3227, 3228)
{txt}(83 real changes made)
{com}. replace task = 6 if inrange(isco, 4220, 4222)
{txt}(132 real changes made)
{com}. replace task = 6 if inrange(isco, 5000, 5121)
{txt}(182 real changes made)
{com}. replace task = 6 if inrange(isco, 5123, 5142)
{txt}(1,397 real changes made)
{com}. replace task = 6 if inrange(isco, 5149, 5220)
{txt}(1,320 real changes made)
{com}. replace task = 6 if inrange(isco, 9003, 9005)
{txt}(0 real changes made)
{com}. replace task = 6 if inrange(isco, 9100, 9113)
{txt}(3 real changes made)
{com}. replace task = 6 if inrange(isco, 9320, 9333) /* departing from oesch, including 9333 (transport labourers, animal vehicles) */
{txt}(601 real changes made)
{com}. 
. * add isco categories 2000 and 3000
. * officially not defined, thus not part of oesch's categories
. 
. replace task = 1 if inlist(isco, 2000, 3000)
{txt}(0 real changes made)
{com}. 
. * task3
. 
. gen task3 = .
{txt}(56,109 missing values generated)
{com}. replace task3 = 1 if task==1 | task==2 // NRM
{txt}(13,048 real changes made)
{com}. replace task3 = 2 if task==3 | task==4 // R
{txt}(6,288 real changes made)
{com}. replace task3 = 3 if task==5 | task==6 // NRC
{txt}(7,280 real changes made)
{com}. tab task3

      {txt}task3 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res}     13,048       49.02       49.02
{txt}          2 {c |}{res}      6,288       23.62       72.65
{txt}          3 {c |}{res}      7,280       27.35      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}     26,616      100.00
{com}. 
. 
. drop isco iscoco
. rename iscoco_withoutchange iscoco
{res}{com}. 
. {c )-}
. 
. {c )-}
. {c )-}
. ************************************************************************
. * Generate a dummy to summarize the risk of automation 
. gen task3cog1=(task3==1) // dummy for non routine cognitive work - 3 task approach
. replace task3cog1=. if task3==.
{txt}(29,493 real changes made, 29,493 to missing)
{com}. gen task3cog2and3=(task3==2 | task3==3) // dummy for  routine cognitive work - 3 task approach
. replace task3cog2and3=. if task3==.
{txt}(29,493 real changes made, 29,493 to missing)
{com}. 
. {c )-}
. ************************************************************************
. ********************* E. Switching Vote ********************************
. ************************************************************************
. {c -(}
. // Generating the years I am interested
. {c -(}
. gen pres12=. 
{txt}(56,109 missing values generated)
{com}. replace pres12=1 if establishment_left2==1 & syear==2014
{txt}(3,706 real changes made)
{com}. replace pres12=2 if establishment_right==1 & syear==2014
{txt}(4,579 real changes made)
{com}. replace pres12=3 if populist==1 & syear==2014
{txt}(205 real changes made)
{com}. replace pres12=4 if plh0012_h>0 & populist~=1 & establishment_right~=1 & establishment_left2~=1 & syear==2014
{txt}(3,513 real changes made)
{com}. 
. 
. gen pres16=. 
{txt}(56,109 missing values generated)
{com}. replace pres16=1 if establishment_left2==1 & syear==2018
{txt}(3,112 real changes made)
{com}. replace pres16=2 if establishment_right==1 & syear==2018
{txt}(3,907 real changes made)
{com}. replace pres16=3 if populist==1 & syear==2018
{txt}(692 real changes made)
{com}. replace pres16=4 if plh0012_h>0 & populist~=1 & establishment_right~=1 & establishment_left2~=1 & syear==2018
{txt}(3,555 real changes made)
{com}. 
. gen vot_12_14=pres12 if syear==2014
{txt}(44,106 missing values generated)
{com}. replace vot_12_14=. if pres12~=1 & pres12~=2 & pres12~=3   & pres12~=4
{txt}(0 real changes made)
{com}. by pid, sort: egen vot12_14=total(vot_12_14)
. 
. gen switching2 = . 
{txt}(56,109 missing values generated)
{com}. replace switching2 = 1 if vot12_14==1 & pres16==3 // left to pop
{txt}(28 real changes made)
{com}. replace switching2 = 0 if vot12_14==3 & pres16==3 // always pop
{txt}(61 real changes made)
{com}. replace switching2 = 0 if vot12_14==2 //Republicans in 2012
{txt}(7,670 real changes made)
{com}. replace switching2 = 0 if vot12_14==4 //Other
{txt}(5,882 real changes made)
{com}. replace switching2 = 0 if vot12_14==3 & pres16~=3 // Populist to anything except Rep
{txt}(286 real changes made)
{com}. 
. gen switching2_broad = . 
{txt}(56,109 missing values generated)
{com}. replace switching2_broad = 1 if vot12_14~=3 & pres16==3 // no pop to pop
{txt}(631 real changes made)
{com}. replace switching2_broad = 0 if vot12_14==3 & pres16==3 // always pop
{txt}(61 real changes made)
{com}. replace switching2_broad = 0 if pres16~=3 & syear==2018
{txt}(28,735 real changes made)
{com}. 
. gen switching2_r = . 
{txt}(56,109 missing values generated)
{com}. replace switching2_r = 1 if vot12_14==2 & pres16==3 // left to pop
{txt}(78 real changes made)
{com}. replace switching2_r = 0 if vot12_14==3 & pres16==3 // always pop
{txt}(61 real changes made)
{com}. replace switching2_r = 0 if vot12_14==1 //Republicans in 2012
{txt}(6,180 real changes made)
{com}. replace switching2_r = 0 if vot12_14==4 //Other
{txt}(5,882 real changes made)
{com}. replace switching2_r = 0 if vot12_14==3 & pres16~=3 // Populist to anything except Rep
{txt}(286 real changes made)
{com}. 
. 
. 
. {c )-}
. {c )-}
. *############################################
. * Saving the data
. *############################################
. {c -(}
. // Label
. lab var switching2 "Left to Pop Right"
. lab var switching2_r "Right to AfD"
. lab var switching2_broad "Switching Vote"
. lab var rti "RTI Index"
. lab var female "Female"
. lab var age "Age"
. lab var educ "Education"
. lab var high "High-Skilled"
. lab var unemployed "Unemployed"
. lab var foreign "Foreign born"
. lab var nonrelig "Non-Believer"
. lab var offshwalt2 "Offshorability"
. lab var relskillspec "Skill-Specificity"
. lab var t2 "Task-Tech"
. lab var t3 "Task-Inter"
. lab var task3cog1 "Non-Routine"
. lab var task3cog2and3 "Routine"
. lab var sampreg "Region (West 1 - East 2)"
. 
.         
. {c )-}
. keep switching2 switching2_r switching2_broad rti female age educ high unemployed nonrelig offshwalt2 relskillspec t2 t3 task3cog1 task3cog2and3 sampreg pid syear income rincome year  phrf   foreign
. 
. save "Data\SOEP.dta", replace
{txt}{p 0 4 2}
file {bf}
Data\SOEP.dta{rm}
saved
{p_end}
{com}. 
. {c )-}
{txt}
{com}. *##########################################
. * Alternatively load prepared data
. *##########################################
. {c -(}
. use "Data\SOEP.dta", clear      
. {c )-}       
{txt}
{com}. *##########################################     
. * Analysis      
. *##########################################     
. {c -(}       
. {c -(}       
.         
. // How is the data?     
. xtset pid syear 
{res}
{col 1}{txt:Panel variable: }{res:pid}{txt: (unbalanced)}
{p 1 16 2}{txt:Time variable: }{res:syear}{txt:, }{res:{bind:2014}}{txt: to }{res:{bind:2018}}{txt:, but with gaps}{p_end}
{txt}{col 10}Delta: {res}1 unit
{com}. xtdes   

     {txt}pid:  {res}901{txt}, {res}1501{txt}, ..., {res}39238301                          {txt}n ={res}      38965
   {txt}syear:  {res}2014, 2018, ..., 2018                             {txt}T ={res}          2
           {txt}Delta(syear) = {res}1 unit
           {txt}Span(syear)  = {res}5 periods
           {txt}(pid*syear uniquely identifies each observation)

Distribution of T_i:   min      5%     25%       50%       75%     95%     max
                    {res}     1       1       1         1         2       2       2

{txt}{col 6}Freq.  Percent    Cum. {c |}  Pattern*
 {hline 27}{c +}{c -}{c -}{hline 8}
{res}    17144     44.00   44.00{txt} {c |}  {res}11
    12283     31.52   75.52{txt} {c |}  {res}.1
     9538     24.48  100.00{txt} {c |}  {res}1.
{txt} {hline 27}{c +}{c -}{c -}{hline 8}
{res}    38965    100.00        {txt} {c |}  {res}XX
{txt} {hline 27}{c BT}{c -}{c -}{hline 8}
 *Each column represents 4 periods.

{com}.         
. * Figure        
. {c -(}       
. // Graph style  
. // Graph style          
. grstyle clear           
. set scheme s2color              
. grstyle init            
{res}{com}. grstyle set plain, nogrid               
. grstyle color background white          
.                 
. // Figure 3: The effect of exposure to automation on vote-switching. [German part]              
. // Margins              
. {c -(}               
. 
. 
.          
. logit  switching2   rti  female age  foreign   income offshwalt2      [pw=phrf] if year==2018 

{txt}note: {bf:foreign} != 0 predicts failure perfectly;
      {bf:foreign} omitted and 62 obs not used.

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-267644.88}  
Iteration 1:{space 3}log pseudolikelihood = {res:-246149.68}  
Iteration 2:{space 3}log pseudolikelihood = {res:-236302.79}  
Iteration 3:{space 3}log pseudolikelihood = {res:-236116.66}  
Iteration 4:{space 3}log pseudolikelihood = {res:-236115.89}  
Iteration 5:{space 3}log pseudolikelihood = {res:-236115.89}  
{res}
{txt}Logistic regression{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:1,777}
{txt}{col 57}{lalign 13:Wald chi2({res:5})}{col 70} = {res}{ralign 6:17.73}
{txt}{col 57}{lalign 13:Prob > chi2}{col 70} = {res}{ralign 6:0.0033}
{txt}Log pseudolikelihood = {res:-236115.89}{col 57}{lalign 13:Pseudo R2}{col 70} = {res}{ralign 6:0.1178}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}  switching2{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}rti {c |}{col 14}{res}{space 2} 1.017934{col 26}{space 2} .4200115{col 37}{space 1}    2.42{col 46}{space 3}0.015{col 54}{space 4} .1947268{col 67}{space 3} 1.841142
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.5232226{col 26}{space 2} .8798132{col 37}{space 1}   -0.59{col 46}{space 3}0.552{col 54}{space 4}-2.247625{col 67}{space 3}  1.20118
{txt}{space 9}age {c |}{col 14}{res}{space 2}-.0329574{col 26}{space 2} .0289082{col 37}{space 1}   -1.14{col 46}{space 3}0.254{col 54}{space 4}-.0896164{col 67}{space 3} .0237015
{txt}{space 5}foreign {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 6}income {c |}{col 14}{res}{space 2} .0001009{col 26}{space 2} .0000998{col 37}{space 1}    1.01{col 46}{space 3}0.312{col 54}{space 4}-.0000947{col 67}{space 3} .0002965
{txt}{space 2}offshwalt2 {c |}{col 14}{res}{space 2}-2.847035{col 26}{space 2} 1.470596{col 37}{space 1}   -1.94{col 46}{space 3}0.053{col 54}{space 4} -5.72935{col 67}{space 3} .0352801
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-2.112584{col 26}{space 2} 1.387122{col 37}{space 1}   -1.52{col 46}{space 3}0.128{col 54}{space 4}-4.831292{col 67}{space 3} .6061249
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{com}. 
.                 
. margins, atmeans at(rti=(-1.52(0.05)2.24))              
{res}
{txt}Adjusted predictions{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:1,777}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Pr(switching2), predict()}{p_end}
{p2colreset}{...}
{lalign 8:1._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-1.52}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:2._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-1.47}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:3._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-1.42}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:4._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-1.37}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:5._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-1.32}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:6._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-1.27}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:7._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-1.22}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:8._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-1.17}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:9._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-1.12}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:10._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-1.07}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:11._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-1.02}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:12._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.97}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:13._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.92}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:14._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.87}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:15._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.82}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:16._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.77}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:17._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.72}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:18._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.67}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:19._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.62}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:20._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.57}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:21._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.52}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:22._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.47}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:23._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.42}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:24._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.37}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:25._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.32}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:26._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.27}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:27._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.22}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:28._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.17}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:29._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.12}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:30._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.07}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:31._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:-.02}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:32._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.03}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:33._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.08}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:34._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.13}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:35._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.18}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:36._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.23}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:37._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.28}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:38._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.33}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:39._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.38}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:40._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.43}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:41._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.48}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:42._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.53}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:43._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.58}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:44._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.63}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:45._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.68}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:46._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.73}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:47._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.78}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:48._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.83}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:49._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.88}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:50._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.93}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:51._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:.98}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:52._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.03}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:53._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.08}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:54._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.13}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:55._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.18}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:56._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.23}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:57._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.28}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:58._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.33}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:59._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.38}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:60._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.43}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:61._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.48}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:62._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.53}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:63._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.58}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:64._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.63}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:65._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.68}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:66._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.73}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:67._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.78}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:68._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.83}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:69._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.88}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:70._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.93}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:71._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:1.98}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:72._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:2.03}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:73._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:2.08}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:74._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:2.13}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:75._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:2.18}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}
{lalign 8:76._at: }{space 0}{lalign 10:rti} = {res:{ralign 8:2.23}}
{lalign 8:}{space 0}{lalign 10:female} = {res:{ralign 8:.4276016}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:age} = {res:{ralign 8:47.16494}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:foreign} = {res:{ralign 8:0}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:income} = {res:{ralign 8:3324.045}} {txt:(mean)}
{lalign 8:}{space 0}{lalign 10:offshwalt2} = {res:{ralign 8:.5717052}} {txt:(mean)}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .0011929{col 26}{space 2} .0015402{col 37}{space 1}    0.77{col 46}{space 3}0.439{col 54}{space 4}-.0018259{col 67}{space 3} .0042117
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .0012551{col 26}{space 2} .0015955{col 37}{space 1}    0.79{col 46}{space 3}0.431{col 54}{space 4} -.001872{col 67}{space 3} .0043822
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .0013206{col 26}{space 2} .0016524{col 37}{space 1}    0.80{col 46}{space 3}0.424{col 54}{space 4} -.001918{col 67}{space 3} .0045592
{txt}{space 10}4  {c |}{col 14}{res}{space 2} .0013894{col 26}{space 2} .0017109{col 37}{space 1}    0.81{col 46}{space 3}0.417{col 54}{space 4}-.0019638{col 67}{space 3} .0047427
{txt}{space 10}5  {c |}{col 14}{res}{space 2} .0014619{col 26}{space 2}  .001771{col 37}{space 1}    0.83{col 46}{space 3}0.409{col 54}{space 4}-.0020093{col 67}{space 3} .0049331
{txt}{space 10}6  {c |}{col 14}{res}{space 2} .0015381{col 26}{space 2} .0018329{col 37}{space 1}    0.84{col 46}{space 3}0.401{col 54}{space 4}-.0020543{col 67}{space 3} .0051305
{txt}{space 10}7  {c |}{col 14}{res}{space 2} .0016183{col 26}{space 2} .0018964{col 37}{space 1}    0.85{col 46}{space 3}0.393{col 54}{space 4}-.0020986{col 67}{space 3} .0053352
{txt}{space 10}8  {c |}{col 14}{res}{space 2} .0017026{col 26}{space 2} .0019617{col 37}{space 1}    0.87{col 46}{space 3}0.385{col 54}{space 4}-.0021422{col 67}{space 3} .0055475
{txt}{space 10}9  {c |}{col 14}{res}{space 2} .0017914{col 26}{space 2} .0020286{col 37}{space 1}    0.88{col 46}{space 3}0.377{col 54}{space 4}-.0021847{col 67}{space 3} .0057675
{txt}{space 9}10  {c |}{col 14}{res}{space 2} .0018847{col 26}{space 2} .0020974{col 37}{space 1}    0.90{col 46}{space 3}0.369{col 54}{space 4} -.002226{col 67}{space 3} .0059955
{txt}{space 9}11  {c |}{col 14}{res}{space 2}  .001983{col 26}{space 2} .0021678{col 37}{space 1}    0.91{col 46}{space 3}0.360{col 54}{space 4}-.0022659{col 67}{space 3} .0062318
{txt}{space 9}12  {c |}{col 14}{res}{space 2} .0020863{col 26}{space 2}   .00224{col 37}{space 1}    0.93{col 46}{space 3}0.352{col 54}{space 4} -.002304{col 67}{space 3} .0064766
{txt}{space 9}13  {c |}{col 14}{res}{space 2}  .002195{col 26}{space 2}  .002314{col 37}{space 1}    0.95{col 46}{space 3}0.343{col 54}{space 4}-.0023403{col 67}{space 3} .0067302
{txt}{space 9}14  {c |}{col 14}{res}{space 2} .0023093{col 26}{space 2} .0023896{col 37}{space 1}    0.97{col 46}{space 3}0.334{col 54}{space 4}-.0023743{col 67}{space 3} .0069929
{txt}{space 9}15  {c |}{col 14}{res}{space 2} .0024296{col 26}{space 2} .0024671{col 37}{space 1}    0.98{col 46}{space 3}0.325{col 54}{space 4}-.0024058{col 67}{space 3}  .007265
{txt}{space 9}16  {c |}{col 14}{res}{space 2} .0025561{col 26}{space 2} .0025463{col 37}{space 1}    1.00{col 46}{space 3}0.315{col 54}{space 4}-.0024345{col 67}{space 3} .0075468
{txt}{space 9}17  {c |}{col 14}{res}{space 2} .0026892{col 26}{space 2} .0026272{col 37}{space 1}    1.02{col 46}{space 3}0.306{col 54}{space 4}  -.00246{col 67}{space 3} .0078385
{txt}{space 9}18  {c |}{col 14}{res}{space 2} .0028293{col 26}{space 2} .0027098{col 37}{space 1}    1.04{col 46}{space 3}0.296{col 54}{space 4}-.0024819{col 67}{space 3} .0081405
{txt}{space 9}19  {c |}{col 14}{res}{space 2} .0029766{col 26}{space 2} .0027942{col 37}{space 1}    1.07{col 46}{space 3}0.287{col 54}{space 4}   -.0025{col 67}{space 3} .0084531
{txt}{space 9}20  {c |}{col 14}{res}{space 2} .0031315{col 26}{space 2} .0028802{col 37}{space 1}    1.09{col 46}{space 3}0.277{col 54}{space 4}-.0025137{col 67}{space 3} .0087766
{txt}{space 9}21  {c |}{col 14}{res}{space 2} .0032945{col 26}{space 2} .0029679{col 37}{space 1}    1.11{col 46}{space 3}0.267{col 54}{space 4}-.0025226{col 67}{space 3} .0091115
{txt}{space 9}22  {c |}{col 14}{res}{space 2} .0034659{col 26}{space 2} .0030573{col 37}{space 1}    1.13{col 46}{space 3}0.257{col 54}{space 4}-.0025262{col 67}{space 3}  .009458
{txt}{space 9}23  {c |}{col 14}{res}{space 2} .0036462{col 26}{space 2} .0031482{col 37}{space 1}    1.16{col 46}{space 3}0.247{col 54}{space 4}-.0025242{col 67}{space 3} .0098165
{txt}{space 9}24  {c |}{col 14}{res}{space 2} .0038358{col 26}{space 2} .0032407{col 37}{space 1}    1.18{col 46}{space 3}0.237{col 54}{space 4}-.0025159{col 67}{space 3} .0101876
{txt}{space 9}25  {c |}{col 14}{res}{space 2} .0040353{col 26}{space 2} .0033348{col 37}{space 1}    1.21{col 46}{space 3}0.226{col 54}{space 4}-.0025008{col 67}{space 3} .0105714
{txt}{space 9}26  {c |}{col 14}{res}{space 2} .0042451{col 26}{space 2} .0034304{col 37}{space 1}    1.24{col 46}{space 3}0.216{col 54}{space 4}-.0024784{col 67}{space 3} .0109686
{txt}{space 9}27  {c |}{col 14}{res}{space 2} .0044658{col 26}{space 2} .0035275{col 37}{space 1}    1.27{col 46}{space 3}0.206{col 54}{space 4}-.0024481{col 67}{space 3} .0113796
{txt}{space 9}28  {c |}{col 14}{res}{space 2} .0046979{col 26}{space 2} .0036261{col 37}{space 1}    1.30{col 46}{space 3}0.195{col 54}{space 4}-.0024092{col 67}{space 3} .0118049
{txt}{space 9}29  {c |}{col 14}{res}{space 2} .0049419{col 26}{space 2} .0037261{col 37}{space 1}    1.33{col 46}{space 3}0.185{col 54}{space 4}-.0023611{col 67}{space 3}  .012245
{txt}{space 9}30  {c |}{col 14}{res}{space 2} .0051986{col 26}{space 2} .0038276{col 37}{space 1}    1.36{col 46}{space 3}0.174{col 54}{space 4}-.0023032{col 67}{space 3} .0127005
{txt}{space 9}31  {c |}{col 14}{res}{space 2} .0054686{col 26}{space 2} .0039304{col 37}{space 1}    1.39{col 46}{space 3}0.164{col 54}{space 4}-.0022348{col 67}{space 3}  .013172
{txt}{space 9}32  {c |}{col 14}{res}{space 2} .0057525{col 26}{space 2} .0040347{col 37}{space 1}    1.43{col 46}{space 3}0.154{col 54}{space 4}-.0021553{col 67}{space 3} .0136603
{txt}{space 9}33  {c |}{col 14}{res}{space 2}  .006051{col 26}{space 2} .0041404{col 37}{space 1}    1.46{col 46}{space 3}0.144{col 54}{space 4}-.0020639{col 67}{space 3}  .014166
{txt}{space 9}34  {c |}{col 14}{res}{space 2}  .006365{col 26}{space 2} .0042475{col 37}{space 1}    1.50{col 46}{space 3}0.134{col 54}{space 4}  -.00196{col 67}{space 3} .0146899
{txt}{space 9}35  {c |}{col 14}{res}{space 2} .0066951{col 26}{space 2} .0043562{col 37}{space 1}    1.54{col 46}{space 3}0.124{col 54}{space 4}-.0018428{col 67}{space 3}  .015233
{txt}{space 9}36  {c |}{col 14}{res}{space 2} .0070422{col 26}{space 2} .0044664{col 37}{space 1}    1.58{col 46}{space 3}0.115{col 54}{space 4}-.0017118{col 67}{space 3} .0157962
{txt}{space 9}37  {c |}{col 14}{res}{space 2} .0074072{col 26}{space 2} .0045784{col 37}{space 1}    1.62{col 46}{space 3}0.106{col 54}{space 4}-.0015663{col 67}{space 3} .0163806
{txt}{space 9}38  {c |}{col 14}{res}{space 2} .0077909{col 26}{space 2} .0046922{col 37}{space 1}    1.66{col 46}{space 3}0.097{col 54}{space 4}-.0014056{col 67}{space 3} .0169875
{txt}{space 9}39  {c |}{col 14}{res}{space 2} .0081944{col 26}{space 2} .0048081{col 37}{space 1}    1.70{col 46}{space 3}0.088{col 54}{space 4}-.0012293{col 67}{space 3} .0176182
{txt}{space 9}40  {c |}{col 14}{res}{space 2} .0086186{col 26}{space 2} .0049264{col 37}{space 1}    1.75{col 46}{space 3}0.080{col 54}{space 4} -.001037{col 67}{space 3} .0182741
{txt}{space 9}41  {c |}{col 14}{res}{space 2} .0090645{col 26}{space 2} .0050473{col 37}{space 1}    1.80{col 46}{space 3}0.073{col 54}{space 4}-.0008281{col 67}{space 3} .0189571
{txt}{space 9}42  {c |}{col 14}{res}{space 2} .0095333{col 26}{space 2} .0051714{col 37}{space 1}    1.84{col 46}{space 3}0.065{col 54}{space 4}-.0006025{col 67}{space 3} .0196691
{txt}{space 9}43  {c |}{col 14}{res}{space 2} .0100261{col 26}{space 2} .0052991{col 37}{space 1}    1.89{col 46}{space 3}0.058{col 54}{space 4}  -.00036{col 67}{space 3} .0204122
{txt}{space 9}44  {c |}{col 14}{res}{space 2} .0105441{col 26}{space 2} .0054311{col 37}{space 1}    1.94{col 46}{space 3}0.052{col 54}{space 4}-.0001007{col 67}{space 3} .0211889
{txt}{space 9}45  {c |}{col 14}{res}{space 2} .0110885{col 26}{space 2} .0055681{col 37}{space 1}    1.99{col 46}{space 3}0.046{col 54}{space 4} .0001751{col 67}{space 3} .0220019
{txt}{space 9}46  {c |}{col 14}{res}{space 2} .0116607{col 26}{space 2} .0057112{col 37}{space 1}    2.04{col 46}{space 3}0.041{col 54}{space 4} .0004671{col 67}{space 3} .0228544
{txt}{space 9}47  {c |}{col 14}{res}{space 2} .0122621{col 26}{space 2} .0058612{col 37}{space 1}    2.09{col 46}{space 3}0.036{col 54}{space 4} .0007744{col 67}{space 3} .0237499
{txt}{space 9}48  {c |}{col 14}{res}{space 2} .0128941{col 26}{space 2} .0060196{col 37}{space 1}    2.14{col 46}{space 3}0.032{col 54}{space 4} .0010959{col 67}{space 3} .0246923
{txt}{space 9}49  {c |}{col 14}{res}{space 2} .0135583{col 26}{space 2} .0061878{col 37}{space 1}    2.19{col 46}{space 3}0.028{col 54}{space 4} .0014304{col 67}{space 3} .0256861
{txt}{space 9}50  {c |}{col 14}{res}{space 2} .0142561{col 26}{space 2} .0063675{col 37}{space 1}    2.24{col 46}{space 3}0.025{col 54}{space 4}  .001776{col 67}{space 3} .0267362
{txt}{space 9}51  {c |}{col 14}{res}{space 2} .0149893{col 26}{space 2} .0065607{col 37}{space 1}    2.28{col 46}{space 3}0.022{col 54}{space 4} .0021306{col 67}{space 3} .0278481
{txt}{space 9}52  {c |}{col 14}{res}{space 2} .0157596{col 26}{space 2} .0067696{col 37}{space 1}    2.33{col 46}{space 3}0.020{col 54}{space 4} .0024915{col 67}{space 3} .0290278
{txt}{space 9}53  {c |}{col 14}{res}{space 2} .0165689{col 26}{space 2} .0069966{col 37}{space 1}    2.37{col 46}{space 3}0.018{col 54}{space 4} .0028558{col 67}{space 3}  .030282
{txt}{space 9}54  {c |}{col 14}{res}{space 2} .0174189{col 26}{space 2} .0072445{col 37}{space 1}    2.40{col 46}{space 3}0.016{col 54}{space 4}   .00322{col 67}{space 3} .0316179
{txt}{space 9}55  {c |}{col 14}{res}{space 2} .0183118{col 26}{space 2} .0075164{col 37}{space 1}    2.44{col 46}{space 3}0.015{col 54}{space 4}   .00358{col 67}{space 3} .0330436
{txt}{space 9}56  {c |}{col 14}{res}{space 2} .0192495{col 26}{space 2} .0078154{col 37}{space 1}    2.46{col 46}{space 3}0.014{col 54}{space 4} .0039316{col 67}{space 3} .0345675
{txt}{space 9}57  {c |}{col 14}{res}{space 2} .0202343{col 26}{space 2} .0081453{col 37}{space 1}    2.48{col 46}{space 3}0.013{col 54}{space 4} .0042699{col 67}{space 3} .0361987
{txt}{space 9}58  {c |}{col 14}{res}{space 2} .0212683{col 26}{space 2} .0085097{col 37}{space 1}    2.50{col 46}{space 3}0.012{col 54}{space 4} .0045897{col 67}{space 3}  .037947
{txt}{space 9}59  {c |}{col 14}{res}{space 2}  .022354{col 26}{space 2} .0089126{col 37}{space 1}    2.51{col 46}{space 3}0.012{col 54}{space 4} .0048857{col 67}{space 3} .0398224
{txt}{space 9}60  {c |}{col 14}{res}{space 2} .0234938{col 26}{space 2} .0093583{col 37}{space 1}    2.51{col 46}{space 3}0.012{col 54}{space 4} .0051519{col 67}{space 3} .0418357
{txt}{space 9}61  {c |}{col 14}{res}{space 2} .0246902{col 26}{space 2} .0098511{col 37}{space 1}    2.51{col 46}{space 3}0.012{col 54}{space 4} .0053825{col 67}{space 3}  .043998
{txt}{space 9}62  {c |}{col 14}{res}{space 2}  .025946{col 26}{space 2} .0103955{col 37}{space 1}    2.50{col 46}{space 3}0.013{col 54}{space 4} .0055711{col 67}{space 3} .0463208
{txt}{space 9}63  {c |}{col 14}{res}{space 2} .0272638{col 26}{space 2} .0109962{col 37}{space 1}    2.48{col 46}{space 3}0.013{col 54}{space 4} .0057117{col 67}{space 3} .0488159
{txt}{space 9}64  {c |}{col 14}{res}{space 2} .0286466{col 26}{space 2} .0116578{col 37}{space 1}    2.46{col 46}{space 3}0.014{col 54}{space 4} .0057976{col 67}{space 3} .0514955
{txt}{space 9}65  {c |}{col 14}{res}{space 2} .0300973{col 26}{space 2} .0123853{col 37}{space 1}    2.43{col 46}{space 3}0.015{col 54}{space 4} .0058226{col 67}{space 3}  .054372
{txt}{space 9}66  {c |}{col 14}{res}{space 2} .0316191{col 26}{space 2} .0131834{col 37}{space 1}    2.40{col 46}{space 3}0.016{col 54}{space 4} .0057801{col 67}{space 3} .0574582
{txt}{space 9}67  {c |}{col 14}{res}{space 2} .0332152{col 26}{space 2} .0140573{col 37}{space 1}    2.36{col 46}{space 3}0.018{col 54}{space 4} .0056634{col 67}{space 3} .0607671
{txt}{space 9}68  {c |}{col 14}{res}{space 2}  .034889{col 26}{space 2}  .015012{col 37}{space 1}    2.32{col 46}{space 3}0.020{col 54}{space 4} .0054661{col 67}{space 3}  .064312
{txt}{space 9}69  {c |}{col 14}{res}{space 2}  .036644{col 26}{space 2} .0160526{col 37}{space 1}    2.28{col 46}{space 3}0.022{col 54}{space 4} .0051814{col 67}{space 3} .0681066
{txt}{space 9}70  {c |}{col 14}{res}{space 2} .0384837{col 26}{space 2} .0171846{col 37}{space 1}    2.24{col 46}{space 3}0.025{col 54}{space 4} .0048025{col 67}{space 3} .0721649
{txt}{space 9}71  {c |}{col 14}{res}{space 2} .0404119{col 26}{space 2} .0184132{col 37}{space 1}    2.19{col 46}{space 3}0.028{col 54}{space 4} .0043227{col 67}{space 3} .0765011
{txt}{space 9}72  {c |}{col 14}{res}{space 2} .0424324{col 26}{space 2} .0197441{col 37}{space 1}    2.15{col 46}{space 3}0.032{col 54}{space 4} .0037348{col 67}{space 3}   .08113
{txt}{space 9}73  {c |}{col 14}{res}{space 2} .0445493{col 26}{space 2} .0211828{col 37}{space 1}    2.10{col 46}{space 3}0.035{col 54}{space 4} .0030318{col 67}{space 3} .0860668
{txt}{space 9}74  {c |}{col 14}{res}{space 2} .0467666{col 26}{space 2} .0227353{col 37}{space 1}    2.06{col 46}{space 3}0.040{col 54}{space 4} .0022063{col 67}{space 3} .0913269
{txt}{space 9}75  {c |}{col 14}{res}{space 2} .0490886{col 26}{space 2} .0244074{col 37}{space 1}    2.01{col 46}{space 3}0.044{col 54}{space 4}  .001251{col 67}{space 3} .0969262
{txt}{space 9}76  {c |}{col 14}{res}{space 2} .0515197{col 26}{space 2} .0262053{col 37}{space 1}    1.97{col 46}{space 3}0.049{col 54}{space 4} .0001582{col 67}{space 3} .1028812
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{com}.      marginsplot , recast(line) recastci(rline) ci1opts(fintensity(50) lpattern(dot)) xti(Risk of automation (RTI - Index)) yti(Predicted Probability of Switching (95% CI)) ti("Germany")                              saving("Figure/Germany.gph", replace)   
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:rti}{p_end}
{res}{txt}file {bf:Figure/Germany.gph} saved
{com}. {c )-}               
.                 
. graph combine "Figure/US.gph" "Figure/Germany.gph"              
{res}{com}.  graph export "Figure/Graph_US_Germany.pdf", as(pdf) replace            
{txt}{p 0 4 2}
file {bf}
Figure/Graph_US_Germany.pdf{rm}
saved as
PDF
format
{p_end}
{com}.                 
. {c )-}       
.                                         
. // Regressions                                  
. {c -(}                                       
. // table A4: Switching Vote (Only left) - Germany, IV - RTI                                     
. {c -(}                                       
. eststo clear                                    
. eststo: qui logit switching2 rti  female age   foreign high i.rincome   [pw=phrf]       if year==2018, robust                           
{txt}({res}est1{txt} stored)
{com}. eststo: qui logit switching2 rti  female age   foreign high i.rincome offshwalt2  i.sampreg [pw=phrf]   if year==2018, robust                           
{txt}({res}est2{txt} stored)
{com}. eststo: qui logit switching2 rti  female age   foreign high i.rincome offshwalt2 relskillspec  i.sampreg  [pw=phrf]     if year==2018   , robust                        
{txt}({res}est3{txt} stored)
{com}. eststo: qui logit switching2 rti  female age   foreign high i.rincome offshwalt2 relskillspec t2 t3 i.sampreg  [pw=phrf]        if year==2018   , robust                        
{txt}({res}est4{txt} stored)
{com}. esttab , replace label se title(Switching Vote (Only left), IV - RTI \label {c -(}tab:left{c )-})mti("+Demographic" "+Offshoring" "+Skill"  "All") compress nogap star(* 0.1 ** 0.05 *** 0.01) b(%6.3f) keep(rti  female age    high offshwalt2 relskillspec t2 t3) scalars(N  r2_p aic) indicate( "Income = *income"  "Regional controls = *.sampreg")                                   
{res}
{txt}Switching Vote (Only left), IV - RTI \label {tab:left}
{txt}{hline 68}
{txt}                       (1)          (2)          (3)          (4)   
{txt}                 +Demogr~c    +Offsho~g       +Skill          All   
{txt}{hline 68}
{res}Left to Pop Ri~t                                                    {txt}
{txt}RTI Index       {res}     0.210        0.902***     0.981***     0.887***{txt}
                {res} {ralign 9:{txt:(}0.197{txt:)}}    {ralign 9:{txt:(}0.323{txt:)}}    {ralign 9:{txt:(}0.317{txt:)}}    {ralign 9:{txt:(}0.248{txt:)}}   {txt}
{txt}Female          {res}    -0.427       -0.501       -0.301       -0.168   {txt}
                {res} {ralign 9:{txt:(}0.949{txt:)}}    {ralign 9:{txt:(}0.887{txt:)}}    {ralign 9:{txt:(}0.876{txt:)}}    {ralign 9:{txt:(}0.837{txt:)}}   {txt}
{txt}Age             {res}    -0.029       -0.037       -0.047       -0.046   {txt}
                {res} {ralign 9:{txt:(}0.037{txt:)}}    {ralign 9:{txt:(}0.033{txt:)}}    {ralign 9:{txt:(}0.031{txt:)}}    {ralign 9:{txt:(}0.030{txt:)}}   {txt}
{txt}High-Skilled    {res}    -1.402       -1.464       -1.470       -1.447   {txt}
                {res} {ralign 9:{txt:(}1.030{txt:)}}    {ralign 9:{txt:(}1.462{txt:)}}    {ralign 9:{txt:(}1.359{txt:)}}    {ralign 9:{txt:(}1.265{txt:)}}   {txt}
{txt}Offshorability  {res}                 -2.773**     -3.049***    -3.131***{txt}
                {res}              {ralign 9:{txt:(}1.201{txt:)}}    {ralign 9:{txt:(}0.948{txt:)}}    {ralign 9:{txt:(}1.004{txt:)}}   {txt}
{txt}Skill-Specific~y{res}                               0.138**      0.129** {txt}
                {res}                           {ralign 9:{txt:(}0.055{txt:)}}    {ralign 9:{txt:(}0.058{txt:)}}   {txt}
{txt}Task-Tech       {res}                                            0.108   {txt}
                {res}                                        {ralign 9:{txt:(}0.959{txt:)}}   {txt}
{txt}Task-Inter      {res}                                           -0.664   {txt}
                {res}                                        {ralign 9:{txt:(}1.195{txt:)}}   {txt}
{txt}Income          {res}       Yes          Yes          Yes          Yes   {txt}
{txt}Regional contr~s{res}        No          Yes          Yes          Yes   {txt}
{txt}{hline 68}
{txt}Observations    {res}      1070         1070         1070         1066   {txt}
{txt}r2_p            {res}     0.067        0.182        0.202        0.210   {txt}
{txt}aic             {res}   4.5e+05      4.0e+05      3.9e+05      3.8e+05   {txt}
{txt}{hline 68}
{txt}Standard errors in parentheses
{txt}* p<0.1, ** p<0.05, *** p<0.01
{com}. esttab using "Table\SDU.tex", replace label se title(Switching Vote (Only left), IV - RTI, Germany \label {c -(}tab:left{c )-})mti("+Demographic" "+Offshoring" "+Skill"  "All")  compress nogap star(* 0.1 ** 0.05 *** 0.01) b(%6.3f) keep(rti  female age    high offshwalt2 relskillspec t2 t3) scalars( "N Observations" "r2_p R$^2$" "aic AIC" )indicate( "Income = *income"  "Regional controls = *.sampreg")                                       
{res}{txt}(output written to {browse  `"Table\SDU.tex"'})
{com}. {c )-}                                       
.                                         
. // table A7: Switching Vote From Establishment Left and Right to Populist Right, IV - RTI, German                                       
. {c -(}                                       
. eststo clear                                    
. eststo: qui logit switching2_broad rti  female age   foreign high i.rincome    [pw=phrf] if year==2018  , robust                                
{txt}({res}est1{txt} stored)
{com}. eststo: qui logit switching2_broad rti  female age   foreign high i.rincome offshwalt2  i.sampreg [pw=phrf] if year==2018       , robust                                
{txt}({res}est2{txt} stored)
{com}. eststo: qui logit switching2_broad rti  female age   foreign high i.rincome offshwalt2 relskillspec  i.sampreg [pw=phrf] if year==2018          , robust                        
{txt}({res}est3{txt} stored)
{com}. eststo: qui logit switching2_broad rti  female age   foreign high i.rincome offshwalt2 relskillspec t2 t3 i.sampreg [pw=phrf] if year==2018             , robust                        
{txt}({res}est4{txt} stored)
{com}. esttab , replace label se title(Switching Vote From Establishment Left and Right to Populist Right, IV - RTI, Germany \label {c -(}tab:Table1rtilongswnarrow2{c )-})mti("+Demographic" "+Offshoring" "+Skill"  "All") compress nogap star(* 0.1 ** 0.05 *** 0.01) b(%6.3f) keep(rti  female age   foreign high offshwalt2 relskillspec t2 t3) scalars("N Observations" "r2_p R$^2$" "aic AIC") indicate( "Income = *income"  "Regional controls = *.sampreg")                                     
{res}
{txt}Switching Vote From Establishment Left and Right to Populist Right, IV - RTI, Germany \label {tab:Table1rtilongswnarrow2}
{txt}{hline 68}
{txt}                       (1)          (2)          (3)          (4)   
{txt}                 +Demogr~c    +Offsho~g       +Skill          All   
{txt}{hline 68}
{res}Switching Vote                                                      {txt}
{txt}RTI Index       {res}     0.124        0.209*       0.207*       0.269*  {txt}
                {res} {ralign 9:{txt:(}0.098{txt:)}}    {ralign 9:{txt:(}0.125{txt:)}}    {ralign 9:{txt:(}0.120{txt:)}}    {ralign 9:{txt:(}0.140{txt:)}}   {txt}
{txt}Female          {res}    -1.260***    -1.212***    -1.272***    -1.365***{txt}
                {res} {ralign 9:{txt:(}0.227{txt:)}}    {ralign 9:{txt:(}0.226{txt:)}}    {ralign 9:{txt:(}0.237{txt:)}}    {ralign 9:{txt:(}0.257{txt:)}}   {txt}
{txt}Age             {res}     0.003       -0.000        0.001        0.001   {txt}
                {res} {ralign 9:{txt:(}0.008{txt:)}}    {ralign 9:{txt:(}0.009{txt:)}}    {ralign 9:{txt:(}0.009{txt:)}}    {ralign 9:{txt:(}0.008{txt:)}}   {txt}
{txt}Foreign born    {res}    -1.125**     -0.966*      -0.948*      -0.973*  {txt}
                {res} {ralign 9:{txt:(}0.545{txt:)}}    {ralign 9:{txt:(}0.548{txt:)}}    {ralign 9:{txt:(}0.548{txt:)}}    {ralign 9:{txt:(}0.543{txt:)}}   {txt}
{txt}High-Skilled    {res}    -0.715**     -0.695**     -0.727**     -0.734** {txt}
                {res} {ralign 9:{txt:(}0.328{txt:)}}    {ralign 9:{txt:(}0.327{txt:)}}    {ralign 9:{txt:(}0.325{txt:)}}    {ralign 9:{txt:(}0.317{txt:)}}   {txt}
{txt}Offshorability  {res}                 -0.331       -0.278       -0.072   {txt}
                {res}              {ralign 9:{txt:(}0.270{txt:)}}    {ralign 9:{txt:(}0.277{txt:)}}    {ralign 9:{txt:(}0.322{txt:)}}   {txt}
{txt}Skill-Specific~y{res}                              -0.050       -0.056   {txt}
                {res}                           {ralign 9:{txt:(}0.035{txt:)}}    {ralign 9:{txt:(}0.038{txt:)}}   {txt}
{txt}Task-Tech       {res}                                            0.176   {txt}
                {res}                                        {ralign 9:{txt:(}0.347{txt:)}}   {txt}
{txt}Task-Inter      {res}                                            0.603   {txt}
                {res}                                        {ralign 9:{txt:(}0.412{txt:)}}   {txt}
{txt}Income          {res}       Yes          Yes          Yes          Yes   {txt}
{txt}Regional contr~s{res}        No          Yes          Yes          Yes   {txt}
{txt}{hline 68}
{txt}Observations    {res}      7522         7522         7522         7510   {txt}
{txt}R$^2$           {res}     0.068        0.081        0.084        0.087   {txt}
{txt}AIC             {res}   5.7e+06      5.6e+06      5.6e+06      5.6e+06   {txt}
{txt}{hline 68}
{txt}Standard errors in parentheses
{txt}* p<0.1, ** p<0.05, *** p<0.01
{com}. 
. esttab using "Table\SOEPlong_2.tex", replace label se title(Switching Vote From Establishment Left and Right to Populist Right, IV - RTI, Germany \label {c -(}tab:Table1rtilongswnarrow2{c )-})mti("+Demographic" "+Offshoring" "+Skill"  "All") compress nogap star(* 0.1 ** 0.05 *** 0.01) b(%6.3f) keep(rti  female age   foreign high offshwalt2 relskillspec t2 t3) scalars("N Observations" "r2_p R$^2$" "aic AIC") indicate( "Income = *income"  "Regional controls = *.sampreg")                                 
{res}{txt}(output written to {browse  `"Table\SOEPlong_2.tex"'})
{com}. {c )-}                                       
.                                         
. // table A8: Switching Vote, IV - Routine (dummy), Germany                                      
. {c -(}                                       
.         eststo clear                            
. eststo: qui logit switching2_broad task3cog2and3  female age   foreign high i.rincome   [pw=phrf] if year==2018, robust                                 
{txt}({res}est1{txt} stored)
{com}.                                         
. eststo: qui logit switching2_broad task3cog2and3  female age   foreign high i.rincome offshwalt2  i.sampreg [pw=phrf] if year==2018             , robust                        
{txt}({res}est2{txt} stored)
{com}. eststo: qui logit switching2_broad task3cog2and3  female age   foreign high i.rincome offshwalt2 relskillspec i.sampreg [pw=phrf] if year==2018         , robust                        
{txt}({res}est3{txt} stored)
{com}.                                         
. eststo: qui logit switching2_broad task3cog2and3  female age   foreign high i.rincome offshwalt2 relskillspec t2 t3 i.sampreg [pw=phrf] if year==2018           , robust                        
{txt}({res}est4{txt} stored)
{com}. esttab , replace label se title(Switching Vote, IV - Routine (dummy), Germany \label {c -(}tab:Table1rtilongswnarrowtask3cog2and3{c )-})mti("+Demographic" "+Offshoring" "+Skill"  "All") compress nogap star(* 0.1 ** 0.05 *** 0.01) b(%6.3f) keep(task3cog2and3  female age   foreign high offshwalt2 relskillspec t2 t3) scalars("N Observations" "r2_p R$^2$" "aic AIC") indicate( "Income = *.rincome"  "Regional controls = *.sampreg")                                     
{res}
{txt}Switching Vote, IV - Routine (dummy), Germany \label {tab:Table1rtilongswnarrowtask3cog2and3}
{txt}{hline 68}
{txt}                       (1)          (2)          (3)          (4)   
{txt}                 +Demogr~c    +Offsho~g       +Skill          All   
{txt}{hline 68}
{res}Switching Vote                                                      {txt}
{txt}Routine         {res}     0.472*       0.463*       0.525**      0.576** {txt}
                {res} {ralign 9:{txt:(}0.241{txt:)}}    {ralign 9:{txt:(}0.240{txt:)}}    {ralign 9:{txt:(}0.241{txt:)}}    {ralign 9:{txt:(}0.234{txt:)}}   {txt}
{txt}Female          {res}    -1.122***    -1.086***    -1.145***    -1.258***{txt}
                {res} {ralign 9:{txt:(}0.236{txt:)}}    {ralign 9:{txt:(}0.235{txt:)}}    {ralign 9:{txt:(}0.244{txt:)}}    {ralign 9:{txt:(}0.260{txt:)}}   {txt}
{txt}Age             {res}     0.002        0.001        0.001        0.001   {txt}
                {res} {ralign 9:{txt:(}0.008{txt:)}}    {ralign 9:{txt:(}0.008{txt:)}}    {ralign 9:{txt:(}0.008{txt:)}}    {ralign 9:{txt:(}0.008{txt:)}}   {txt}
{txt}Foreign born    {res}    -0.817       -0.664       -0.652       -0.668   {txt}
                {res} {ralign 9:{txt:(}0.504{txt:)}}    {ralign 9:{txt:(}0.504{txt:)}}    {ralign 9:{txt:(}0.504{txt:)}}    {ralign 9:{txt:(}0.499{txt:)}}   {txt}
{txt}High-Skilled    {res}    -0.712**     -0.724**     -0.752**     -0.784** {txt}
                {res} {ralign 9:{txt:(}0.310{txt:)}}    {ralign 9:{txt:(}0.313{txt:)}}    {ralign 9:{txt:(}0.312{txt:)}}    {ralign 9:{txt:(}0.305{txt:)}}   {txt}
{txt}Offshorability  {res}                 -0.083       -0.008        0.153   {txt}
                {res}              {ralign 9:{txt:(}0.217{txt:)}}    {ralign 9:{txt:(}0.227{txt:)}}    {ralign 9:{txt:(}0.322{txt:)}}   {txt}
{txt}Skill-Specific~y{res}                              -0.055       -0.047   {txt}
                {res}                           {ralign 9:{txt:(}0.033{txt:)}}    {ralign 9:{txt:(}0.034{txt:)}}   {txt}
{txt}Task-Tech       {res}                                           -0.086   {txt}
                {res}                                        {ralign 9:{txt:(}0.303{txt:)}}   {txt}
{txt}Task-Inter      {res}                                            0.334   {txt}
                {res}                                        {ralign 9:{txt:(}0.383{txt:)}}   {txt}
{txt}Income          {res}       Yes          Yes          Yes          Yes   {txt}
{txt}Regional contr~s{res}        No          Yes          Yes          Yes   {txt}
{txt}{hline 68}
{txt}Observations    {res}      8386         8386         8346         8334   {txt}
{txt}R$^2$           {res}     0.067        0.077        0.080        0.082   {txt}
{txt}AIC             {res}   6.1e+06      6.1e+06      6.0e+06      6.0e+06   {txt}
{txt}{hline 68}
{txt}Standard errors in parentheses
{txt}* p<0.1, ** p<0.05, *** p<0.01
{com}.                                         
.         esttab  using "Table\SOEPdummy_2.tex", replace label se title(Switching Vote, IV - Routine (dummy), Germany \label {c -(}tab:Table1rtilongswnarrowtask3cog2and3{c )-})mti("+Demographic" "+Offshoring" "+Skill"  "All") compress nogap star(* 0.1 ** 0.05 *** 0.01) b(%6.3f) keep(task3cog2and3  female age   foreign high offshwalt2 relskillspec t2 t3) scalars("N Observations" "r2_p R$^2$" "aic AIC") indicate( "Income = *.rincome"  "Regional controls = *.sampreg")                               
{res}{txt}(output written to {browse  `"Table\SOEPdummy_2.tex"'})
{com}. {c )-}                                       
. {c )-}                                       
.                                         
. // table A9: Switching Vote (Only from the Right), IV - RTI                                     
.         eststo clear                            
.         eststo: qui logit switching2_r rti  female age   foreign high  i.rincome offshwalt2  i.sampreg [pw=phrf] if year==2018, robust                                                          
{txt}({res}est1{txt} stored)
{com}. eststo: qui logit switching2_r rti  female age   foreign high  i.rincome offshwalt2  i.sampreg [pw=phrf] if year==2018, robust  
{txt}({res}est2{txt} stored)
{com}. eststo: qui logit switching2_r rti  female age   foreign high  i.rincome offshwalt2 relskillspec  i.sampreg [pw=phrf] if year==2018     , robust                
{txt}({res}est3{txt} stored)
{com}. eststo: qui logit switching2_r rti  female age   foreign high  i.rincome offshwalt2 relskillspec t2 t3 i.sampreg [pw=phrf] if year==2018        , robust                                
{txt}({res}est4{txt} stored)
{com}.                 
. esttab , replace label se title(Switching Vote (Only from the Right), IV - RTI \label {c -(}tab:CDU{c )-})mti("+Demographic" "+Offshoring" "+Skill"  "All") compress nogap star(* 0.1 ** 0.05 *** 0.01) b(%6.3f) keep(rti  female age   foreign high offshwalt2 relskillspec t2 t3) scalars( "N Observations" "r2_p R$^2$" "aic AIC" ) indicate( "Income = *income"  "Regional controls = *.sampreg")                                     
{res}
{txt}Switching Vote (Only from the Right), IV - RTI \label {tab:CDU}
{txt}{hline 68}
{txt}                       (1)          (2)          (3)          (4)   
{txt}                 +Demogr~c    +Offsho~g       +Skill          All   
{txt}{hline 68}
{res}Right to AfD                                                        {txt}
{txt}RTI Index       {res}    -0.251       -0.251       -0.244       -0.113   {txt}
                {res} {ralign 9:{txt:(}0.335{txt:)}}    {ralign 9:{txt:(}0.335{txt:)}}    {ralign 9:{txt:(}0.307{txt:)}}    {ralign 9:{txt:(}0.324{txt:)}}   {txt}
{txt}Female          {res}    -1.781***    -1.781***    -1.854***    -2.097***{txt}
                {res} {ralign 9:{txt:(}0.650{txt:)}}    {ralign 9:{txt:(}0.650{txt:)}}    {ralign 9:{txt:(}0.654{txt:)}}    {ralign 9:{txt:(}0.688{txt:)}}   {txt}
{txt}Age             {res}    -0.001       -0.001       -0.000        0.002   {txt}
                {res} {ralign 9:{txt:(}0.029{txt:)}}    {ralign 9:{txt:(}0.029{txt:)}}    {ralign 9:{txt:(}0.029{txt:)}}    {ralign 9:{txt:(}0.030{txt:)}}   {txt}
{txt}Foreign born    {res}     0.797        0.797        0.671        0.522   {txt}
                {res} {ralign 9:{txt:(}1.051{txt:)}}    {ralign 9:{txt:(}1.051{txt:)}}    {ralign 9:{txt:(}1.072{txt:)}}    {ralign 9:{txt:(}1.093{txt:)}}   {txt}
{txt}High-Skilled    {res}    -0.406       -0.406       -0.461       -0.713   {txt}
                {res} {ralign 9:{txt:(}0.806{txt:)}}    {ralign 9:{txt:(}0.806{txt:)}}    {ralign 9:{txt:(}0.806{txt:)}}    {ralign 9:{txt:(}0.560{txt:)}}   {txt}
{txt}Offshorability  {res}     1.140*       1.140*       1.241*       2.050** {txt}
                {res} {ralign 9:{txt:(}0.668{txt:)}}    {ralign 9:{txt:(}0.668{txt:)}}    {ralign 9:{txt:(}0.691{txt:)}}    {ralign 9:{txt:(}1.008{txt:)}}   {txt}
{txt}Skill-Specific~y{res}                              -0.113       -0.074   {txt}
                {res}                           {ralign 9:{txt:(}0.094{txt:)}}    {ralign 9:{txt:(}0.095{txt:)}}   {txt}
{txt}Task-Tech       {res}                                           -0.217   {txt}
                {res}                                        {ralign 9:{txt:(}1.092{txt:)}}   {txt}
{txt}Task-Inter      {res}                                            1.517   {txt}
                {res}                                        {ralign 9:{txt:(}1.203{txt:)}}   {txt}
{txt}Income          {res}       Yes          Yes          Yes          Yes   {txt}
{txt}Regional contr~s{res}       Yes          Yes          Yes          Yes   {txt}
{txt}{hline 68}
{txt}Observations    {res}      1484         1484         1484         1478   {txt}
{txt}R$^2$           {res}     0.171        0.171        0.179        0.208   {txt}
{txt}AIC             {res}   7.3e+05      7.3e+05      7.3e+05      7.0e+05   {txt}
{txt}{hline 68}
{txt}Standard errors in parentheses
{txt}* p<0.1, ** p<0.05, *** p<0.01
{com}.                                         
. esttab using "Table\CDU.tex", replace label se title(Switching Vote (Only from the Right), IV - RTI, Germany \label {c -(}tab:CDU{c )-})mti("+Demographic" "+Offshoring" "+Skill"  "All")  compress nogap star(* 0.1 ** 0.05 *** 0.01) b(%6.3f) keep(rti  female age   foreign high offshwalt2 relskillspec t2 t3) scalars( "N Observations" "r2_p R$^2$" "aic AIC" )indicate( "Income = *income"  "Regional controls = *.sampreg")                                       
{res}{txt}(output written to {browse  `"Table\CDU.tex"'})
{com}.                                         
.                                         
. {c )-}                                       
. {c )-}                                       
{txt}
{com}. *##########################################                                     
. * Descriptive                                   
. *##########################################                                     
. {c -(}                                       
. // table A2: Descriptive statistic: Germany SOEP 2014 vs 2018.                                  
. {c -(}                       
.                 eststo clear
.                 
. qui estpost sum switching2_broad   rti age income female  foreign unemployed high  offshwalt2 relskillspec t2 t3 sampreg [w=phrf] if switching2_broad~=., d                                     
.                                         
. esttab  ,  /// ,  ,                                     
>         cells("mean(label(Mean) fmt(2)) p50(label(Median) fmt(2)) sd(label(S.D.) fmt(2)) min(label(Min.) fmt(0)) max(label(Max) fmt(0)) count(label(Obs.) fmt(0))") ///                         
>         nonumber label replace noobs varlabels(distance_redist "Distance Redistribution" distance_div "Distance Diversity" distance_fixed "Distance Fixed Attributes" PRITM "PR with Trichotomous Multipartism" totseats "Total Number of Seats" number2 "Total Number of Parties" oecdmember "OECD member") nomtitle   
{res}
{txt}{hline 98}
{txt}                             Mean       Median         S.D.         Min.          Max         Obs.
{txt}{hline 98}
{txt}Switching Vote      {res}         0.03         0.00         0.16            0            1        29235{txt}
{txt}RTI Index           {res}        -0.12        -0.44         0.93           -2            2        10185{txt}
{txt}Age                 {res}        50.75        51.00        18.91           17          103        29235{txt}
{txt}income              {res}      2715.32      2500.00      1879.23           20        40000        13712{txt}
{txt}Female              {res}         0.51         1.00         0.50            0            1        29235{txt}
{txt}Foreign born        {res}         0.12         0.00         0.33            0            1        29235{txt}
{txt}Unemployed          {res}         0.04         0.00         0.20            0            1        29207{txt}
{txt}High-Skilled        {res}         0.32         0.00         0.47            0            1        29235{txt}
{txt}Offshorability      {res}         0.46         0.00         0.50            0            1        11383{txt}
{txt}Skill-Specificity   {res}         4.23         3.58         3.26            1           25        11333{txt}
{txt}Task-Tech           {res}         0.34         0.00         0.47            0            1        11319{txt}
{txt}Task-Inter          {res}         0.37         0.00         0.48            0            1        11319{txt}
{txt}Region (West 1 - ~2){res}         1.17         1.00         0.38            1            2        29235{txt}
{txt}{hline 98}
{com}.         
. esttab using "Table\summarystats_Germany.tex" ,  /// ,  ,                                       
>         cells("mean(label(Mean) fmt(2)) p50(label(Median) fmt(2)) sd(label(S.D.) fmt(2)) min(label(Min.) fmt(0)) max(label(Max) fmt(0)) count(label(Obs.) fmt(0))") ///                         
>         nonumber label replace noobs varlabels(distance_redist "Distance Redistribution" distance_div "Distance Diversity" distance_fixed "Distance Fixed Attributes" PRITM "PR with Trichotomous Multipartism" totseats "Total Number of Seats" number2 "Total Number of Parties" oecdmember "OECD member") nomtitle                           
{res}{txt}(output written to {browse  `"Table\summarystats_Germany.tex"'})
{com}. {c )-}                                       
. {c )-}                                       
{txt}
{com}. 
{txt}end of do-file

{com}. exit, clear
